> 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-vi/troubleshooting/no-new-data.md).

# Trending shows no new data

Trending or Supervisor shows no recent data because DATRAN VI isn't logging to SQL Server. Check the services, the connection and SQL Server.

If no data is displayed in DATRAN Trending (or Supervisor's Trend), it may be necessary to restart the SQL Server. Starting DATRAN services in a random order can cause issues with all services starting correctly and inbound telemetry data being handled without loss.

{% hint style="info" %}
**Applies to:** DATRAN VI with SQL Server logging. In V6.78, all new data from the telemetry network is immediately written to the persistent queue system, whether or not there is an active connection to the SQL Server database. See [persistent queues](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/persistent-queues.md).
{% endhint %}

## What you see

* After an unexpected restart of DATRAN services, frequently the result of a Windows update, SQL Server may apparently fail to log telemetry data.
* The ADO service can report that the database is connected when a problem with the server running the database is preventing data from being written.
* While the connection to the database is lost, logged data is stored in recovery files (persistent queue files in V6.78) until the connection is restored.

## Check, in this order

1. **Is the data really missing?** Open DATRAN Trending or use the Trend option in DATRAN Supervisor. Select I/O which is confirmed as being written to the SQL tables, select a date range no older than 1 day from the current date, and ensure that the data displayed is current. See [Check that data is being logged](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/sql-server.md#check-that-data-is-being-logged).
2. **Are the services running?** Confirm that all required services have started correctly: DATRAN VI services (depending on what services are licensed) and the Microsoft SQL service.
3. **What do the diagnostics say?** In Diagnostics, select ADO Database Connectivity: Diagnostic, Execute and LogNodes, and Historical Data Interface: AdoDCM, AdoDCM Error and AdoDCM Execute. Ensure that data is being written to SQL Server with no errors. In V6.78, see [Diagnostic messages](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/sql-server.md#diagnostic-messages).
4. **Restart DATRAN VI services.** If it seems that there is no link between DATRAN VI and the SQL Server, restart DATRAN VI Services.
5. **Restart in order.** Stop all DATRAN services (stop the tree base server first). Then start the tree base server, the DVG (wait for 3 to 5 minutes), ADO, and the rest. See [Start the services in the right order](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/backup-and-restart.md#start-the-services-in-the-right-order).
6. **Still nothing?** If the date stamp of data displayed in the tables does not match the date stamp of data sent from DATRAN VI to the SQL Server, restart the SQL Server, wait for at least 30 minutes, and then check again.

If the new data is in SQL Server but a plot still shows nothing new, see [A plot shows no new data](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/troubleshooting/no-new-data.md) in the [DATRAN Trending troubleshooting](https://help.qtech.co.nz/datran/datran-vi-scada/datran-trending/troubleshooting.md) pages.

## Other causes

| Cause                                                                         | Fix                                                                                                                                                                                                                                                 |
| ----------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ADO aliases are used, for example `_MSDE_Execute_` instead of `_ADO_Execute_` | These should be removed because they won't work properly without modifications to system scripts. In V6.78, see [Replace MSDE aliases](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/install/upgrade-to-v6-78.md#replace-msde-aliases). |
| V6.78: unrecoverable files                                                    | See [Unrecoverable files are building up](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/troubleshooting/unrecoverable-files.md).                                                                                                        |

## Recover missing data

* RTU-logged data: re-retrieve the data from the RTU before it gets overwritten. The RTU logged data can be retrieved manually by right-clicking the `_Comms_Hist_Data_` node in DATRAN Browser and selecting **Request Data**.
* If you find that you need to recover log data from disk then please contact QTech. See [Recommendations](https://help.qtech.co.nz/datran/datran-vi-scada/datran-vi/backup-and-restart.md#recommendations).

## Still not working? Contact QTech

Email <techsupport@qtech.co.nz> with your DATRAN version, when logging stopped, and what the diagnostics show.
