View Issue Details

IDProjectCategoryView StatusLast Update
000839230040: AutomationMLImplementation Bugpublic2022-10-05 14:02
ReporterSrdjan Usorac Assigned Tomiriamschleipen  
PrioritynormalSeverityminorReproducibilityalways
Status confirmedResolutionopen 
Product Version1.00.00 
Summary0008392: Missing inverse references to the parent node
Description

The issue appeared when loading the Opc.Ua.AMLBaseTypes.NodeSet2.xml companion nodeset into the OPC UA server.

The version of the UA-Nodeset tested:

The OPC UA server used is open62541 (https://github.com/open62541/open62541), and the errors are the following:

    AddNode (ns=2;i=1010): Parent node not found
    AddNode (ns=2;i=1011): Parent node not found

Both of these UAVariable nodes have the same parent node ns=1;i=3002. The parent node has the following references to the child nodes:

   \<Reference ReferenceType=\"HasProperty\">ns=1;i=1010\</Reference>
   \<Reference ReferenceType=\"HasProperty\">ns=1;i=1011\</Reference>

But the child nodes are missing the inverse HasProperty reference, for example:

    \<Reference ReferenceType=\"HasProperty\" IsForward=\"false\">ns=1;i=3002\</Reference>

I am not sure if this is something that is intentionally omitted. However, adding the inverse references fixed the issues. I will attach the patch file with added changes.

TagsNo tags attached.
Attached Files
Opc.Ua.AMLBaseTypes.NodeSet2.patch (1,020 bytes)   
diff --git a/AML/Opc.Ua.AMLBaseTypes.NodeSet2.xml b/AML/Opc.Ua.AMLBaseTypes.NodeSet2.xml
index a7004c3..66d7e11 100644
--- a/AML/Opc.Ua.AMLBaseTypes.NodeSet2.xml
+++ b/AML/Opc.Ua.AMLBaseTypes.NodeSet2.xml
@@ -177,6 +177,7 @@
     <References>
       <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
       <Reference ReferenceType="HasModellingRule">i=80</Reference>
+      <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=3002</Reference>
     </References>
   </UAVariable>
   <UAVariable NodeId="ns=1;i=1011" BrowseName="1:Version" ParentNodeId="ns=1;i=3002" DataType="String">
@@ -184,6 +185,7 @@
     <References>
       <Reference ReferenceType="HasTypeDefinition">i=68</Reference>
       <Reference ReferenceType="HasModellingRule">i=80</Reference>
+      <Reference ReferenceType="HasProperty" IsForward="false">ns=1;i=3002</Reference>
     </References>
   </UAVariable>
   <UAVariable NodeId="ns=1;i=1012" BrowseName="1:VariableNodeId" ParentNodeId="ns=1;i=3002" DataType="String">

Activities

miriamschleipen

2022-10-05 14:02

manager   ~0017949

correct, is a bug

Issue History

Date Modified Username Field Change
2022-10-05 10:16 Srdjan Usorac New Issue
2022-10-05 10:16 Srdjan Usorac File Added: Opc.Ua.AMLBaseTypes.NodeSet2.patch
2022-10-05 14:02 miriamschleipen Assigned To => miriamschleipen
2022-10-05 14:02 miriamschleipen Status new => confirmed
2022-10-05 14:02 miriamschleipen Note Added: 0017949