Is the server behaving correctly – BadWaitingForInitialData [0x80320000]|OPC UA Implementation: Stacks, Tools, and Samples|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
Is the server behaving correctly – BadWaitingForInitialData [0x80320000]
Avatar
Jonathan
New Member
Members
Forum Posts: 2
Member Since:
02/02/2018
sp_UserOfflineSmall Offline
1
02/24/2022 - 07:41
sp_Permalink sp_Print

Hello!

I would like to ask for some feedback regarding the behavior of an OPC UA server.

The client has created a subscription and then added multiple monitored items. The server are sending notifications when values are changing, everything is fine so far. However, after the client has written a new value to one of the subscribed items, then in the next publish response from the server, it returns the status code => BadWaitingForInitialData [0x80320000] on the same node as the client wrote the new value to. The write request is successful and the write response returns “GOOD”. Also, the next publish response from the server (after the error) contains a value and everything is good.

Is the server behaving correctly?

To me this sounds like an implementation issue on the server side, why should the server return this error in a publish response after a successful write request?

// Jonathan

Avatar
Randy Armstrong
Admin
Forum Posts: 1564
Member Since:
05/30/2017
sp_UserOfflineSmall Offline
2
02/24/2022 - 15:07
sp_Permalink sp_Print

https://reference.opcfoundatio.....t4/7.34.2/ Bad_WaitingForInitialData

Waiting for the Server to obtain values from the underlying data source.
After creating a MonitoredItem or after setting the MonitoringMode from DISABLED to REPORTING or SAMPLING, it may take some time for the Server to actually obtain values for these items. In such cases the Server can send a Notification with this status prior to the Notification with the first value or status from the data source.

So it is a server error if the MonitoringMode does not change during your sequence of events.

Avatar
Jonathan
New Member
Members
Forum Posts: 2
Member Since:
02/02/2018
sp_UserOfflineSmall Offline
3
02/25/2022 - 01:36
sp_Permalink sp_Print

Randy,

Thank you! Your feedback is much appreciated.

I can confirm that the client did not change the MonitoringMode in this case. In fact, the server included a MonitoredItemNotification for the same node with a correct value in a PublishResponse, about 2 seconds before the write request. So this indicates that the monitored item already has been initialized and has obtained the value from the underlying data source.

Thank you once again.

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