![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
07/10/2019
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Our OPC UA Server may contain Variables that are available for Data Access from the client, but the actual data source of the variable does not exist or the connection to the data source (for example another another communication) is not defined.
To provide the OPC UA client this information we want to set the Status Code of the Variable.
The question now is which Status Code is correct or intended for this situation?
From my interpretation of the OPC UA Specification I would say BadNotConnected. Is this correct?
![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/admindefault.png)
05/30/2017
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Detailed description of error codes can be found here:
![Avatar](https://opcfoundation.org/wp-content/uploads/sp-resources/forum-avatars/defaults/userdefault.png)
07/10/2019
![sp_UserOfflineSmall](https://opcfoundation.org/wp-content/sp-resources/forum-themes/reboot/images/darkpack/sp_UserOfflineSmall.png)
Thank you I found the same reference for the Status Codes. Based on the desciption on the Status Code BadNotConnected I came to the conclusion the for the discriped situation this should be the correct Status Code but our communicaiton partner (providing the OPC UA Client) sees that differently.
Because what the desciption does not say is if the decription is in view of the server or the client. If the view is of the server I think that BadNotConnected is correct for a server variable without configured data source. But if the view is from the client BadNotConnected would meen that the value on the client is not good because no connection to the server is established.
1 Guest(s)