Unable to create Instance of Object Type from DI Companion Spec (Opc.Ua.Di.NodeSet2.xml)|OPC UA Companion Standards|Forum|OPC Foundation

Forum Scope


Forum Options

Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Unable to create Instance of Object Type from DI Companion Spec (Opc.Ua.Di.NodeSet2.xml)
Shubhi Gogna Shubhi Gogna
Forum Posts: 27
Member Since:
sp_UserOfflineSmall Offline
11/23/2021 - 03:52
sp_Permalink sp_Print

Hi Team,

I have imported DI Companion Spec (Opc.Ua.Di.NodeSet2.xml) in my server. After Import, there is new Object Type Created in AddressSpace(ns=1;i=1005 "FunctionalGroupType"). 

I am trying to create a Object of this Type now but failed to create because it contains a Variable (UIElement ns=1;i=6243) whose TypeDefinition is UIElementType (ns=1;i=6246) and IsAbstract is set to TRUE.

I wanted to understand if it a bug in DI nodesetFile as we should not be allowed to create instances for Abstract Types. Can you please review and let me know.


Shubhi Gogna

Randy Armstrong
Forum Posts: 1423
Member Since:
sp_UserOfflineSmall Offline
11/23/2021 - 11:23
sp_Permalink sp_Print

Whatever code you are using to create an instance of FunctionalGroupType is wrong. It should not automatically create optional components.

Your tooling should provide an API where you can passing a concrete subtype of UIElementType to use when instantiating the optional component. If a concrete subtype is not provided the optional component is not added to the new instance of FunctionalGroupType.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online:
Guest(s) 18
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1328
Posts: 4507