Problem in importing NodeSet2.xml via 'open62541-nodeset-loader'

31 views
Skip to first unread message

Moraad Biagooi

unread,
Jan 20, 2024, 6:55:31 AMJan 20
to open62541
Dear All,

I'm checking the possibility of porting from OpenOpcUa (Windows CE app) to Open62541 (Embedded Linux).
When I try importing 'Opc.Ua.NodeSet2.Part3.xml' and other files with NodesetLoader, get the following errors,

[2024-01-20 14:02:47.178 debug/userland     Start import nodeset: /home/user/config/Opc.Ua.NodeSet2.Part3.xml
[2024-01-20 14:02:47.213 (UTC+0350)] info/session       TCP 0   | SecureChannel 0       | Session "Administrator"      | AddNode: Node could not add the new node to the nodestore with error code BadNodeIdExists

How can I fix that? I checked the source code and couldn't figure it out.
Is there a possibility to clear all nodeset in the ram and re-import that? or over-write the node in the memory?


My other question is, 
I have a node in the old configs:

<UAVariable NodeId="ns=1;i=20" BrowseName="Sec" DataType="Int32" AccessLevel="1" UserAccessLevel="1">
  <Description>Address:20</Description>
  <References> <Reference ReferenceType="HasTypeDefinition">i=23</Reference> </References>
</UAVariable>


It gives the following error,
[2024-01-20 12:42:38.189] info/session       TCP 0   | SecureChannel 0       | Session "Administrator"      | AddNode (ns=2;i=20): Type does not match the NodeClass

I tried changing the reference to      
<Reference ReferenceType="HasTypeDefinition">i=63</Reference>

In this case, it works well, but the opcua client doesn't recognize this node because it is configured with 'i=23'. And I cannot touch the client configuration.

I've been struggling with these problems for weeks to no avail.
Do you have any idea on these problems?
Thanks in advance.

Reply all
Reply to author
Forward
0 new messages