> For the complete documentation index, see [llms.txt](https://help.qtech.co.nz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-da/troubleshooting/no-data-from-datran.md).

# The OPC server gets no data from DATRAN

An OPC client connected through the DATRAN OPC Server gets no data. Check the XML service, the channel settings in DVI Power Tool, and iFIX block types.

{% hint style="info" %}
**Applies to:** the DATRAN OPC Server Interface (user manual v1.07).
{% endhint %}

## Check the XML service

1. In DATRAN Browser, under the XML Service node (**XML Data Interface\XML Service**), check that the **Active** node has a value of 1 and that the **Security Expiry** time value is after now. Also ensure that the computer has the license to enable the XML Service. See [Turn on the XML service](https://help.qtech.co.nz/datran/datran-vi-scada/datran-opc-da/opc-server.md#turn-on-the-xml-service).
2. In DATRAN Diagnostics press F2 and select the **XML Module** & **XML Service** diagnostics. Check that the XML Service is not displaying any errors.
3. Refresh (press F2) the node **Named Pipe Server**. It should display the success string "The Named pipe server is running".

## Check the OPC Server's channel

1. Open the application via Start menu > Program > iFIX > **DVI Power Tool**. Note that the DVI Power Tool short cut could have been installed in another program folder e.g. DATRAN VI. The DVI Power Tool application makes the OPC I/O Driver Server visible.
2. In the OPC I/O Driver Server window, go to **View** on the main menu and check all the diagnostics message types i.e. Information, Debug1, Debug2 and Debug3.
3. Double click the **DVI** node to expand the tree. Then select the **DATRAN XML Data Interface** channel. Ensure that these parameters are correct:
   * **Server:** `(local)` if iFix is to be run on the same PC as DATRAN
   * **Username** and **Password:** must be identical to XDI **General Information** setup
   * **Max Items:** 20 (lower this value if exception messages appear in the OPC I/O Driver Server window)
4. Enable the Channel (check the **Enable** box on the top right hand side). Start the server if not already started.

## iFIX: a value doesn't show in Database Manager

* This can happen when the wrong block type has been used. For example, using a digital input block type for a data block of data type double. Using the correct block type will resolve this problem e.g. using an analogue input block type for a data block of data type double.
* This can also happen if the data block has been deleted via Power Tool. If this happened, restart the server.

## Writing from the HMI doesn't work

Check that you have entered the **Write Username** and **Write Password** inside the DATRAN OPC I/O Driver Server.

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with what DATRAN Diagnostics shows, the messages in the OPC I/O Driver Server window, and your HMI software.
