What status code to return if writing null value to variable is unsupported|OPC UA Standard|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
What status code to return if writing null value to variable is unsupported
Avatar
Jonas Green
Halmstad, Sweden
Member
Members
Forum Posts: 23
Member Since:
05/24/2017
sp_UserOfflineSmall Offline
1
12/14/2021 - 00:39
sp_Permalink sp_Print

In the description of the AllowNulls property node (Part 3 v1.04, chapter 5.6.2 Variable NodeClass) it says “If it is set to false, the Server shall never return a null value and shall reject any request writing a null value.”. But what status code should be returned? 

We currently return BadOutOfRange when receiving a request to write a null value to ByteString variable nodes but when the CTT tries to write a null value to a ByteString variable it expects either Good or BadWriteNotSupported (test case “Attribute Services – Attribute Write Values – 006”). Is BadWriteNotSupported the right status code to return if the variable accepts writing the value in general, but does not accept null values to be written?

 

Thanks, Jonas

Avatar
Randy Armstrong
Admin
Forum Posts: 1579
Member Since:
05/30/2017
sp_UserOnlineSmall Online
2
12/14/2021 - 09:39
sp_Permalink sp_Print

Given the fact that the spec does not mandate a specific code for this condition the CTT probably should allow BadOutOfRange.

Avatar
Jonas Green
Halmstad, Sweden
Member
Members
Forum Posts: 23
Member Since:
05/24/2017
sp_UserOfflineSmall Offline
3
12/14/2021 - 13:13
sp_Permalink sp_Print

Randy Armstrong said
Given the fact that the spec does not mandate a specific code for this condition the CTT probably should allow BadOutOfRange.

  

Thanks for the response. I have reported an issue on the CTT project: https://mantis.opcfoundation.o…..hp?id=7473.

Forum Timezone: America/Phoenix
Most Users Ever Online: 510
Currently Online: Randy Armstrong
Guest(s) 38
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Forum Stats:
Groups: 2
Forums: 10
Topics: 1445
Posts: 4889