Wrong ItemID in GetItemID |Classic OPC: DA, A&E, HDA, XML-DA, etc.|Forum|OPC Foundation

Avatar
Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
sp_Feed sp_PrintTopic sp_TopicIcon
Wrong ItemID in GetItemID
Avatar
Den Kim
New Member
Members
Forum Posts: 1
Member Since:
09/22/2023
sp_UserOfflineSmall Offline
1
09/22/2023 - 00:30
sp_Permalink sp_Print

While browsing OPC DA tree, my .NET app gets the OPC_E_UNKNOWNITEMID error on several sub branches during calling AddItems API. I added more logs and saw that the result of GetItemID API call differs from one that I could get if I would concatenate all parent names of a tag. For example,

GetItemID result: FPA.Fire Panel -.Detector.54.MyTagName

Concatenated parent names: FPA.Fire Panel 1-1.Detector.MyTagName

Using the latter form, I successfully subscribe to tag updates via AddItems call. The former form raises the OPC_E_UNKNOWNITEMID error.

Avatar
Randy Armstrong
Admin
Forum Posts: 1457
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
09/23/2023 - 13:35
sp_Permalink sp_Print

That sounds like a non-compliant server. The value returned from GetItemID must be a valid value to pass to AddItems.

It is possible it is caused by a server misconfiguration.

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