OPC UA Read Error – Root Causes and Fix Checklist
Successful Connection confirms network and authentication are correct.
Node ID Format Issue
Your current Node ID: ns=1;id=1
Recommended format: ns=1;s=MyVariableName
or ns=1;i=1
Use the same format as in UaExpert (check if it uses string s=
or integer i=
identifiers).
Missing Node or Invalid Path
The node might not exist or is inaccessible using the provided ID.
Use the Browse feature to locate the exact node structure and confirm ID.
Permissions / Access Level
Ensure the user credentials used have read access for that node.
Some servers require session-level permissions, even if the node is visible in UaExpert.
Data Type or Structure
Some nodes contain complex or unsupported data types.
Test reading a basic scalar node like a Boolean
or Int32
.
Connector Limitation or Bug
If the node is valid and readable in other tools, it could be a limitation in the Mendix OPC UA module or how the underlying Eclipse Milo library handles it.
Logging and Debugging
Enable advanced Mendix logging for OPCUAConnector
to get deeper error messages.
This will help isolate null
exceptions shown in the stack trace.