Use the search and browse feature to view Kepware's repository of more than 500 Knowledge Base articles. Narrow your results or type your query into the search field below.

Search Solutions Results By: View All Solutions

Kepware Knowledge Base: Solution


Locating Server Error Code Descriptions


Last Update: 11/7/2018

In the OPC Quick Client (or other OPC clients), users may encounter an HRESULT error code like "(HR=...)", where the ellipses are an eight digit hexadecimal number. If the client application displays a long negative number (such as "-2147024891"), utilize the Windows Calculator to convert the number to hexadecimal. To do so, first click View | Scientific. Then, enter the number including the "-" symbol. For information on looking up text for the error code, refer to the instructions below.

  1. To start, open the server. Then, select the New Project icon.
  2. Next, click the OPC Quick Client icon in the server's toolbar. The OPC Quick Client will automatically build its own project from the server project.
  3. In the upper-left window pane, right-click on the KEPware.KEPServerEX.V4 server connection and then select Get Error String.
  4. In Error Code, enter "0x" and then specify the eight digit hexadecimal number. For example, "0x8007000".
  5. Once finished, click Apply.

    Note: The error text for that hexadecimal number will be displayed in Error Description.

Note: Because many HRESULT error codes have the same meaning in all OPC DA servers, users can utilize the same procedure to look up error codes from any OPC DA-compliant server. Other codes are proprietary to the vendor's servers.

Important: The second instruction will only work with Kepware's OPC servers (such as the U-CON Protocol Server). It will not work for the iSNMP Server, which was originally developed by COI Software. If a server does not support OPC Quick Client automatic tag browsing, start the OPC Quick Client from the Windows Start menu and then use the green toolbar button to manually connect to the server. The Get Error String option should be available; users should not need to add a group to the server.