Hi all,
I am using Nav 2009 R1 and, when trying to use codeunit 50000 "Update Pages for Style Sheets" provided by microsoft, although all automations are visible, published and recognized by NAV, both in NAV Server and in my computer, when using the following code:
IF IS CLEAR(AttributeNode) THEN CREATE(AttributeNode);
i get the error:
This message is for C/AL programmers:
Could not create an instance of the OLE control or Automation server identified by
GUID={F5078F18-C551-11D3-89B9-0000F81FE221} 6.0:{2933BF85-7B36-11D2-B20E-00C04F983E60}:'Microsoft XML, v6.0'.IXMLDOMAttribute.
Check that the OLE control or Automation server is correctly installed and registered.
Although this is a very regular sbject in this forum, i haven't been able to find an answer to this problem. i already tried deleting and creating the variables and reattributing the automation services.
Any hint on what this can be?
Thank you for your help!
Comments
I believe Nodes are not created but rather the MSDOM creates the node and assigns it to AttributeNode
MSDOM.setAttributeNodeNS('attrnode');
AttributeNode := MSDOM.getAttributeNodeNS(attrnode);
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
I only put that code because the error I was getting before was the 'classic'
The original code is Microsoft, as follows:
Thank you for your help
My guess the xml file is malformed or doesn't have the Node expected and thus lines like below
ChildNodeList := PageNode.childNodes;
return null. So ChildNodeList is uninitialized.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
that is the reason why i wrote the
in the first place...
Your xml file does not have node. Find out why.
Save the xml file to text and take a look at it.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n