Automation error with MSMQ

JoeriJoeri Member Posts: 75
Hello,

i'm getting an automation variable is not created or initiated error, but i don't see what i did wrong. So i was hoping you could shed some light on the issue. I have the follwing code:

OnRun()

CREATE(MQBus);
CREATE(CC2);
CREATE(XMLDom);
CC2.AddBusAdapter(MQBus,1);
MQBus.OpenReceiveQueue('vm_nav50demo\private$\tonavision',0,0);
CC2::MessageReceived(VAR InMessage : Automation "''.IDISPATCH")

CLEAR(ScannerID);
CLEAR(RequestType);

// get the message
InMsg := InMessage;
InS   := InMsg.GetStream();

// load the message into an XML document and find a node
XMLDom.load(InS);

RootNode := XMLDom.documentElement;
ReturnedNode := XMLDom.documentElement;
NodePath := 'ROOT';

IF XMLDOMMgmt.FindNode(RootNode,NodePath,ReturnedNode) THEN BEGIN

And then i get the error, in the XMLDOMMgmt function FindNode.

Name DataType Subtype Length
XMLDOMMgmt Codeunit BizTalk XML DOM Management

I'm using a 3.7 client and environment, and i'm running this singleinstance codeunit from the client with debugger on.

Anyone got i clue what i did wrong here ?

Thanks.[/code]

Comments

  • garakgarak Member Posts: 3,263
    which error you are get :?:

    the FindNode function use the automation:

    'Microsoft XML, v3.0'.IXMLDOMNode

    When you open the codeunit 6224 and you go to the function FindNode(), open then the local variables, can u see these automation subtype or is ther "Unknown" :?: Can you compile this Codeunit :?:

    Regards
    Do you make it right, it works too!
  • kinekine Member Posts: 12,562
    And do not forget that you need to install MSMQ on your PC... ;-)
    Kamil Sacek
    MVP - Dynamics NAV
    My BLOG
    NAVERTICA a.s.
  • garakgarak Member Posts: 3,263
    This i've assume ;-)
    Do you make it right, it works too!
Sign In or Register to comment.