UA_MonitoredItemAddList function block error code 2952790020 after migrating from AS 4.12 to AS 6.5

Hello,

After using the help files to migrate my AsOpcUac library from AS 4.12 to AS 6.0, I was able to transfer the application to the target. However, the UA_MonitoredItemAddList function block gives me an error code 2952790020 for invalid variable names. The variable names did not changed and they are working for AS 4.12. I double check the required syntax for the variable and my syntax is correct. I am not sure what else could cause this error. This application is downloaded to a OPC client target and it looks like the issue is coming from the client. I used UAExpert to check the OPC UA server side and it is working correctly.

I enable the OPC UA client/server but I did not enable the variables on the client side. I did not have to in AS 4.12. Do I need to do it in AS 6.5?

1 Like

Hello,

Are those variables local or global? Local variables are specified without a task name in the AS6 OpcUa_Sample.

Are those variables used in the code? Couldn’t it be somehow connected to this post?

Hello,

Starting from AR6, specifying the NodeQualityID is mandatory. If it is not provided, the error UA_Bad_VariableNameInvalid occurs.
image

2 Likes

Hello @Phong_Vo,
Maybe this will help you:

1 Like

Specifying the NodeQualityID solved my problem. Thank you.