Error -356612 When Connecting to OPC UA Server

Updated Nov 15, 2019

Reported In

Software

  • LabVIEW OPC UA Toolkit

Issue Details

I am using the LabVIEW OPC UA Toolkit to connect my OPC UA client VI to an OPC UA server. The OPC UA Client Connect VI is reporting the following error:

Error -356612 occurred at NI OPC UA Client.lvlib:Connect.vi

Possible reason(s):

OPC UA Toolkit:  (Hex 0xFFFA8EFC) A communication problem occurred. Ensure that the OPC UA server that you specify in the server endpoint URL is running and the network between the OPC UA server and the OPC UA client is connectable.

Solution

This error indicates that the client VI was not able to establish a connection with the server. Try the following to resolve this error. Please not that you may need to contact the OPC UA server manufacturer to verify some of this information:
  1. Make sure that the endpoint URL is correctly formatted. It should be in the format opc.tcp://[server hostname or IP address]:[server port number]
  2. Make sure that the server hostname or IP address and OPC UA port number are correct.
  3. Check that the client is using the correct security policy that the server expects. For example, if the client is trying to use a policy of None, but this isn't supported by the server, it might give you this error.
  4. If using a security policy, make sure that the server is configured to trust your computer as a client and that the client has the correct security certificate.
  5. Some 3rd-party OPC UA servers use tunneling applications that are used to communicate data across firewalls. In these cases, LabVIEW may not be able to communicate directly with the server and may need to communicate with the tunneling client application instead.  

Additional Information

When getting OPC UA connection issues, you can run the OPC UA Demo LabVIEW example to make sure that your LabVIEW OPC UA client VI is able to communicate with a LabVIEW OPC UA server. You can also try using 3rd-party OPC UA client software (such as UA Expert from Unified Automation) to test the connection to the server.