Page 1 of 1

badnodeidunknown error even if the NodeId is correct

Posted: 16 Mar 2023, 18:03
by RobFra
Hi.
We are having a problem that is getting us mad.
We already made a connection with an OPC UA server that is supposed to be the same! But with this new one it is not working.
The OPC UA tag is an array.
The NodeID is exactly the same that we can see in the UA Expert.
We can write it going directly using UA Expert but we cannot read/write using our application because it gives BadNodeidUnknown.

The id is:

ns=6;s=::AsGlobalPV:OPCServerTag.Box_Code[0]

Any idea? Could it be a server's problem? And how can we find it out?
Other tags of the same OPC UA server are working, the only difference is that they are not arrays.

Thanks for your help.

Re: badnodeidunknown error even if the NodeId is correct

Posted: 16 Mar 2023, 19:53
by Support Team
Hi,
no, it can not be a server problem, if UaExpert can read/write it, it will be all fine in the Server. It sounds like a client problem.

You should check the NodeID again, it is most probably wrong. My educated guess is "...[0]" is probably indicating the first element within the array, but not the array. Therefore I doubt that the NodeID is displayed like that in UaExpert. You must browse to the Node in the tree, click it, and check the "AttributeWindow" for NodeID and other attributes (specially ValueRank) details.

Re: badnodeidunknown error even if the NodeId is correct

Posted: 16 Mar 2023, 21:13
by RobFra
Hi Support Team,
thanks for your reply.
I can't understand why.
With the other OPC UA server it work, referring to the Node as
ns=6;s=::AsGlobalPV:OPCServerTag.Box_Code[0]

And they are supposed to be the same.
An apparently looking both with UA Expert they are exactly the same.
I didn't check ValueRank. But I will.

Thanks for the while. I'll be back soon