OPC UA . Read Value ok but Write not possible

Hello Forum,

I have a OPC UA server where UaExpert, CTT ( conformity Test Tool) can Read/Write nodes without problems. If a make a simple flow with node-red using the node-red-contrib-opcua to read and write this boolean node , only read operation succeeded , the write operation gives an error ( without other details..) see below:

// read 
11:45:19:581   <<<<<< _on_message_received  29 ReadResponse Good (0x00000)
{ /*ReadResponse*/
 responseHeader                /* ResponseHeader      */: {
   timestamp                   /* DateTime            */: 2020-07-17T11:45:19.581Z
   requestHandle               /* UInt32              */: 29               0x1d
   serviceResult               /* StatusCode          */: Good (0x00000)
   serviceDiagnostics          /* DiagnosticInfo      */: { /*DiagnosticInfo*/
 namespaceUri                  /* Int32               */: null
 symbolicId                    /* Int32               */: -1
 locale                        /* Int32               */: -1
 localizedText                 /* Int32               */: -1
 additionalInfo                /* String              */: null
 innerStatusCode               /* StatusCode          */: Good (0x00000)
 innerDiagnosticInfo           /* DiagnosticInfo      */: null
};
   stringTable                 /* UAString         [] */: [ /* empty*/ ]
   additionalHeader            /* ExtensionObject     */: null
 }
 results                       /* DataValue        [] */: [ /* length =1*/

   { /* DataValue */
      value: Variant(Scalar<Boolean>, value: true)
      statusCode:      Good (0x00000)
      serverTimestamp: 2020-07-17T11:45:19.581Z $ 205.400.000
      sourceTimestamp: 2020-07-17T11:41:50.368Z $ 108.800.000
   }
 ]
 diagnosticInfos               /* DiagnosticInfo   [] */: [ /* empty*/ ]
};
// write
17 Jul 13:46:06 - [error] [OpcUa-Client:f1a2b564.94ed28] Error

I have checked the permissions and the write Masks . All seems to be ok. The only currious details is that the description in the uaexpert attribute window of this node is ( written in red) :
description:Invalid Datatype: Expected OpcUaType_LocalizedText, Received OpcUaType_Null
But can not imagine that the description has an impact on the write operation...Any other ideas?
thanks a lot for your reply.

Hi, I have edited your post to improve readability (surrounded code parts with ``` back ticks)

Have you looked at the issues page to see if there is an existing or closed issue that might help?

If not, then perhaps you need to raise an issue & link back to here for reference?

Some servers do not accept to write timestamp & statuscode, only value write can be done.
But in this case LocalizedText is actually not supported. Did you try to write variable with some other type?
I added LocalizedText to latest version.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.