Professional Communication
Software Development Tools

OPC Foundation member and certified logos

Online Forums

Technical support is provided through Support Forums below. Anybody can view them; you need to Register/Login to our site (see links in upper right corner) in order to Post questions or issues. You do not have to own a commercial license in order to use the OPC Labs supportOur team is actively monitoring the forums, and provides replies as soon as possible.

Please read Rules for forum posts before reporting your issue or asking a question. OPC Labs team is actively monitoring the forums, and replies as soon as possible.

Various technical information can also be found in our Knowledge Base. For your convenience, we have also assembled a Frequently Asked Questions page.

Do not use the Contact page for technical issues.

Unable to write complex data running code example in "DataTypeId Property" page

More
02 Apr 2026 18:36 #14590 by support
Please include the full source code file, ideally as attachment and not an "embedded" code. From the error message, it seems that the NodeId is invalid. It can be something on our side (parsing the NodeId string), but more likely it is copy-paste or typo error in the source.

Best regards

Please Log in or Create an account to join the conversation.

More
01 Apr 2026 14:47 #14589 by scaglio
Hello, with the recent update of the quickopc library i'm able to read complex data using library examples.  Now I have problem writing data. Some data types can be written without problems and others not. Using the example found on this link ( opclabs.doc-that.com/files/onlinedocs/OPCLabs-ConnectivitySt...AGenericObject~DataTypeId.html ) I can update correctly byte data but if I try to modify/update integer data i have this exception: 

OpcLabs.EasyOpc.UA.OperationModel.UAException: 'An OPC-UA operation failure with error ID 'OpcLabs.UAEngine=4601' occurred, originating from '' and with depth of 1. The inner exception, with error Id "OpcLabs.UAEngine=4601", contains details about the problem.'
Inner Exception:
UAEngineException: The status of the OPC-UA attribute data is not Good. The actual status is 'BadNodeIdUnknown'.
+ During writing or method calls, readings may occur when value type is not specified.
+ The node descriptor used was: NodeId="s=nsu = test.org/UA/Data/ ;i=10239".
+ The client method called (or event/callback invoked) was 'WriteMultiple[1]'.

This is my code used to update data:

 var data1 = (StructuredData)genericObject.GenericData;
 var data2 = (SequenceData)data1.FieldData["Int32Value"];
 var data3= (PrimitiveData)data2.Elements[0];
 data3.Value = (int)12345;
 Thank you.



 

Please Log in or Create an account to join the conversation.

Moderators: supportvaclav.zaloudek
Time to create page: 0.117 seconds