diff --git a/Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs b/Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs index cd5cf088a..a7e19357a 100644 --- a/Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs +++ b/Stack/Opc.Ua.Core/Schema/UANodeSetHelpers.cs @@ -674,6 +674,14 @@ private NodeState Import(ISystemContext context, UANode node) } } + string parentNodeId = (node as UAInstance)?.ParentNodeId; + + if (!String.IsNullOrEmpty(parentNodeId)) + { + // set parent NodeId in Handle property. + importedNode.Handle = ImportNodeId(parentNodeId, context.NamespaceUris, true); + } + return importedNode; }