1.4.11.1, BadTypeMismatch with UA_NAMESPACE_ZERO=FULL

40 views
Skip to first unread message

Mikko Kiilholma

unread,
Mar 17, 2025, 5:12:40 AMMar 17
to open62541
Hi,
My first message here. I am starting to implement OPC UA Server in my project and I am new to OPC UA and the SDK. 

I am quite sure I need to set UA_NAMESPACE_ZERO=FULL but this causes my server not to start.

I am setting the UA_NODESET_DIR and UA_SCHEMA_DIR to deps/ua-nodeset/ and deps/ua-nodeset/Schema and use ua_generate_nodeset_and_datatypes to generate c code for di nodeset.

I am getting error:
Writing the value of Node ns=2;i=6208 failed with the following reason: DataType of the value is incompatible
TCP 0   | SC 0  | Session "Administrator"       | WriteRequest returned status code BadTypeMismatch
TCP 0   | SC 0  | Session "Administrator"       | AddNode (ns=2;i=6208): Could not create a default value with StatusCode BadTypeMismatch
TCP 0   | SC 0  | Session "Administrator"       | AddNode (ns=2;i=6208): Type-checking failed with error code BadTypeMismatch
BadTypeMismatch

My server start if I use version 1.3.15 but I want to take the latest releases in use for PubSub features.

Could someone help?

- Mikko

Julius Pfrommer

unread,
Apr 2, 2025, 5:46:24 AMApr 2
to open62541
Mikko,

The master branch is built against the 1.5.03 Nodeset from the OPC Foundation.
Make sure that, when you switch between branches, the git submodule at /deps/ua-nodeset is also updated to the exact commit which is referenced.
Any difference will show up when you execute "git status".

If this doesn't solve it, we can dive deeper to resolve the issue.

Regards, Julius
Reply all
Reply to author
Forward
0 new messages