View Issue Details

IDProjectCategoryView StatusLast Update
000839130270: I4AASImplementation Bugpublic2022-10-05 10:19
ReporterSrdjan Usorac Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status newResolutionopen 
Summary0008391: 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

Srdjan Usorac

2022-10-05 10:19

reporter   ~0017947

This issue is for AutomationML. Accidently submitted this issue here in I4AAS. I cannot find the option to delete this issue, so I would like to ask an admin to delete this issue. The new issue has been created in the AutomationML section: https://mantis.opcfoundation.org/view.php?id=8392.

Issue History

Date Modified Username Field Change
2022-10-05 10:05 Srdjan Usorac New Issue
2022-10-05 10:05 Srdjan Usorac File Added: Opc.Ua.AMLBaseTypes.NodeSet2.patch
2022-10-05 10:19 Srdjan Usorac Note Added: 0017947