Detecting UaNodeSet parse failure

Questions regarding the use of the C++ SDK for Server or Client development or integration into customer products ...

Moderator: uasdkcpp

Post Reply
tijmenv
Full Member
Full Member
Posts: 5
Joined: 13 May 2015, 12:33

Detecting UaNodeSet parse failure

Post by tijmenv »

Hello,

I am trying to read a UaNodeSet file (SDK 1.4.3) and this succeeds (so far so good). But when the UaNodeSet file that I'm trying to read is not ok (empty f.i.) I get only a trace error and the server starts anyway. There seems to be no way to detect that an error has occurred other than reading the trace file. Am I missing something here? Is there a way to detect parse errors while (or after) reading a UaNodeSet file?

Best regards,

Tijmen

User avatar
Support Team
Hero Member
Hero Member
Posts: 3070
Joined: 18 Mar 2011, 15:09

Re: Detecting UaNodeSet parse failure

Post by Support Team »

Hello,

There is no direct way to detect errors that occur when importing a NodeSet XML file.
However there is the Method NodeManagerNodeSetXml.allNodesAndReferencesCreated that is called after all nodes have been imported successfully. If errors occurr you can only look at the trace file.

Best regards
Support Team

tijmenv
Full Member
Full Member
Posts: 5
Joined: 13 May 2015, 12:33

Re: Detecting UaNodeSet parse failure

Post by tijmenv »

Thanks,

This makes it possible for me to detect that an error has occurred when reading a nodeset file. This is precisely what i was looking for.

Best regards,
Tijmen

Post Reply