Hi everyone, i am doing an upgrade from NAV2013r2 to NAV2018. In the old version, I've created a codeunit to manage different connection for an integration with a delivery enterprise. For this, in the procedures of the codeunit, exist different automation variables. In the old server, work perfect, but when I'0m trying o compile this CodeUbnit in NAV2018, in a new server, I get this error: "Cannot obtain information of the type library The type library could be damaged or has an invalid format. Try to register again OLE control or the Automation server" Any hint?
Did you install this old OLE control on the PC with your Development Environment?
How should I do that? I think that is the XML 6.0 automation. The dll is well located in the system32 folder...
If you need to use XML, it's best using DotNet. You can see how to use it (it's very similar to automation) in codeunit 6224 "XML DOM Management", and, if you can, use this "library" to read or write XML documents.
DotNet can run on server, and this is best if you want to use web services or automated tasks through job queue.
Thank you for your answer. Thath could be a solution, but it will be quite a harde job, becasue the codunit is working perfectly, and that solution will extend the upgrade process...
If there is not other solution, i will work on it, but I prefer not to change the CU if it's possible...
In our upgrades we have changed all automations vars to dotnet. But, have you checked this web page:
You have to create all automations this way:
CREATE(AutomationVariable [,True|False] ,True);
The last parameter has to be TRUE always.
Gracias Ponç, I'll work on it. I will take a look to the creation of the Automation, and If the error persists, I'll change the CU...