IMD SolutionComputing LibraryShop main store

Troubleshooting

VTScada historian data missing when copying the Data folder

Edge computing and IIoT Published 8 min read By IMD Solution engineering team

Short answer

Copying only the VTScada Data folder leaves trends and reports blank because native historian records bind to each tag's immutable Unique ID in the application configuration. Across separate networks, stop the source application, copy the full application directory listed under Settings on the Application Info tab plus any custom StorageLocation folder, and register it on the target PC via Add New Application, Advanced, Find Existing. Use the original security credentials if secured, or CSVHistory to merge tags into a separate application.

Three rack-mount servers in an open rack, each with twelve hot-swap drive bays and status lights
On this page
  1. Why copying only the Data folder leaves trends blank
  2. Choosing the right VTScada history migration path
  3. Locating the application folder and custom storage paths
  4. Copying the application directory and registering with Find Existing
  5. Handling locked source files and missing application credentials
  6. Sizing the offline move and stop-window sample gap for a 12-month VTScada archive
  7. Verifying recovered trends and reports on the destination PC
  8. Questions asked

Replacing only the Data folder inside another VTScada application leaves trends blank and historical reports empty because native historian records bind to each tag's immutable Unique ID in the source application configuration. Live values may continue updating under the target application's own tags while past history stays unreadable. To move an application and its history across separate networks, stop the source application, copy the entire directory shown under Settings on the Application Info tab (plus any custom StorageLocation folder), and register it in the VTScada Application Manager (VAM) via Add New Application -> Advanced -> Find Existing.

By default, VTScada stores an application's configuration, tag definitions, pages, and native historian files together in one folder such as C:\VTScada\ApplicationNameNoSpaces\. Every application includes two built-in Historian tags, SystemHistorian and SystemAlarmHistorian, which write proprietary binary FileDB data under Data\History\ in monthly subfolders for each Historian tag.

Stored sub-elements in that binary archive tie directly to each tag's immutable Unique ID (or an optional Storage Name override). Dropping a copied Data folder into a separately created VTScada application pairs those binary files with tags that carry different Unique ID values. Live I/O values keep logging under the destination tags—confirming communications are working—while historical queries return empty pens and zero rows.

Confirm the storage backend before copying files. On each Historian tag's Datastore or Datastore (Advanced) tab, inspect SystemHistorianStorageType (and the equivalent StorageType property on custom Historian tags). When set to ODBC for SQL Server, Oracle, or MySQL instead of the native format, history resides in that external database rather than Data\History\. Migrating an ODBC historian requires moving the SQL database and verifying backend support, runtime account, ODBC driver, and site-specific DSN on the target PC.

If you already overwrote an active application's Data folder, stop that application immediately and restore its pre-overwrite backup so new samples do not mix into a mismatched store.

Choosing the right VTScada history migration path #

Select the transfer path based on network connectivity and whether the destination PC runs the full source application or merges selected tags into a different application.

Scenario Supported method Result
PCs on separate networks; moving the full application and history Stop the source app, copy the full application folder (plus any external StorageLocation), register with VAM Find Existing Full application and history with intact Unique ID binding; only the stop-to-start cutover gap
Both PCs run VTScada on a reachable network Use Add New Application -> Advanced -> Get from workstation and add both PCs in Application Configuration -> Edit Server Lists Automatic bi-directional backfill sync to 1 ms timestamp precision without manual file copies
Merging selected tags into a separate existing VTScada app or from another SCADA system Export values and import single-tag CSV files plus TagMapping.csv via Data\CSVHistory\ and CSVHistoryImporter Maps imported series to destination tag paths without breaking existing Unique IDs
Foreign Data folder already copied over a destination app Stop the target app, restore its pre-overwrite backup, then run Find Existing or CSVHistory Clears mismatched files before live logging corrupts recovery

On networked multi-server systems, configure redundancy under Application Configuration -> Edit Server Lists (Basic Mode for primary and backup order, or Advanced Mode for service-specific lists such as SystemHistorian) and track backfill using the Historian Status Widget or Service Status Widget. Trihedral advises against manually copying Data onto an active peer server because it creates sync conflicts and discontinuities—a failure mode shared with diagnosing historian gaps after copying history blocks between servers.

Unlike platforms that separate configuration from history—such as Inductive Automation Ignition, where a .gwbk Gateway backup must align with an external SQL dump preserving sqlth_sqltag and tag_id records for trends and IEC 62541-11 HistoryRead queries—VTScada's native historian binds both inside one application directory.

Locating the application folder and custom storage paths #

Check four details on the source workstation before starting an offline copy:

  • Read the exact root path in Application Info: Open the source application, go to Settings, and check the Application Info tab. Do not assume C:\VTScada\ApplicationNameNoSpaces\ without verifying, because an application installed elsewhere leaves the default folder empty or unrelated.
  • Inspect StorageLocation on every Historian tag: Open the Datastore and Datastore (Advanced) tabs for SystemHistorian, SystemAlarmHistorian, and any custom Historian tag. Default SystemHistorianStorageLocation maps to History inside Data (for example, C:\VTScada\PlantScada\Data\History\SystemHistorian\). Any tag pointing outside the application folder requires copying that external directory to the exact matching relative or absolute path on the target PC.
  • Confirm security credentials: Check whether application security is active and confirm you hold valid administrator credentials before retiring the source workstation.
  • Check Windows permissions: Verify the transfer account has full read access on the source tree and write access to C:\VTScada\ on the target PC.

Copying the application directory and registering with Find Existing #

Follow these steps for an offline migration between separate networks. Never create a blank application with the same name first and paste folders over it.

  1. Stop the VTScada application on the source PC. Copying native binary historian files while the application runs risks an inconsistent file set.
  2. Copy the entire application directory shown on Application Info—not only Data—onto removable media or an approved staging drive, along with any custom external StorageLocation directory.
  3. Paste the application directory directly into C:\VTScada\ on the destination PC, and place any custom external StorageLocation folder at the exact same relative or absolute path.
  4. Before registering the folder, confirm that removable-media transfer did not corrupt any binary files by running a PowerShell SHA512 checksum across the entire directory on both PCs and verifying identical digests.
  5. Open the VTScada Application Manager (VAM) on the target PC, select Menu (three bars), and choose Add New Application -> Advanced -> Find Existing.
  6. Browse to the pasted application directory, select Next, and finish the dialog.
  7. Start the registered application and sign in with the original security credentials if prompted.

Handling locked source files and missing application credentials #

When a source workstation appears locked, distinguish an OS file lock from VTScada application security:

  • Copy fails or the application will not start: Confirm that the VTScada application and any Windows service hosting it are completely stopped so no open file handles remain on Data\History. If Windows still denies access, check NTFS permissions and run the copy from a local administrator account.
  • Application starts on the target PC but prompts for login: Copying the directory carries its security enforcement with it. Obtain valid credentials from the system owner, or follow Trihedral's documented recovery channel through official VTScada support if credentials are lost—never edit application files to defeat security.

Sizing the offline move and stop-window sample gap for a 12-month VTScada archive #

Inputs and basis. From VTScada historian documentation: each application has 2 built-in Historian tags (SystemHistorian and SystemAlarmHistorian) partitioned into monthly subfolders under Data\History\; the native FileDB engine is rated up to 4,000 values/s; and CSVHistory merges require 1 CSV file per tag plus 1 TagMapping.csv index (2 columns per row in ascending UTC format YYYY-MM-DD HH:MM:SS.mmm, rejecting timestamps before 1970-01-01). Illustrative case inputs for migrating 1 application between 2 PCs on separate networks (0 routed links, default History path): 12 months (365 days) of archive data, 100 process tags logged at 1 value/(tag*s), and a 10-minute stop, copy, and checksum window.

Rule in words. Source logging load equals logged tag count multiplied by the per-tag rate, compared against the native engine ceiling. Offline gap equals stop duration in seconds multiplied by source logging load (and is bounded above by stop duration multiplied by the native ceiling). Native subfolder scope equals Historian tag count multiplied by archive months. Equivalent CSVHistory workload equals one CSV per tag plus the mapping index, with total rows equal to tag count multiplied by archive seconds multiplied by per-tag rate.

Arithmetic.

  • Source load: 100 tags x 1 value/(tag*s) = 100 values/s, which is 100 values/s / 4,000 values/s = 0.025 (2.5% of documented FileDB capacity).
  • Stop duration: 10 minutes x 60 s/minute = 600 s.
  • Unlogged stop-window gap: 600 s x 100 values/s = 60,000 values (600 values/tag), bounded at the documented ceiling by 600 s x 4,000 values/s = 2,400,000 values.
  • Native subfolder scope: 2 Historian tags x 12 months = 24 monthly subfolders inside 1 application directory (0 external storage folders).
  • Equivalent CSVHistory workload over 365 days: 365 days x 86,400 s/day = 31,536,000 s; total rows equal 100 tags x 31,536,000 s x 1 value/(tag*s) = 3,153,600,000 rows across 100 + 1 = 101 files.

Result. Moving the single application directory transfers all 24 monthly subfolders with intact Unique ID bindings and leaves only the expected cutover gap (60,000 values for this illustrative load). Merging the same archive into a separate application via CSVHistory requires formatting 101 files holding 3,153,600,000 rows; once CSVHistoryImporter runs on restart (or when DoImport is set to 1 in the Source Debugger), VTScada automatically deletes the source CSV files.

Decision and thresholds.

  • With 0 network paths and full application ownership on the target PC, move the complete application directory (plus any external StorageLocation folders) and register it via Find Existing.
  • Use CSVHistory (TagMapping.csv entries formatted TagHistoryFile_1.CSV,Full\Path\To\VTScadaTagName_1 with spaces preserved and no quotes) strictly when merging selected tags into an already populated second application whose Unique IDs differ; if rows fail to load, check troubleshooting VTScada CSV history import failures.
  • When 1 or more routed network paths exist and a stop-window gap is unacceptable, use networked Get from workstation and Server List synchronization instead.

Validate historical readback before retiring the source workstation:

  • Check the active path: Open Settings on the Application Info tab on the destination PC and confirm it points to the pasted directory, not a separate empty folder.
  • Verify a known historical tag, value, and timestamp: Open the Historical Data Viewer (HDV) on a tag that logged before the move, set the time span strictly prior to the source stop timestamp, and confirm that exact values and timestamps match the source machine.
  • Cross-check a past report: Run a report across that same pre-cutover window and compare totals and timestamped records against the source. Never rely on row counts alone, since row counts depend on logging triggers, update behavior, buffering, and retention settings.
  • Confirm the cutover gap: Verify that the only missing span sits between the source stop time and the first live write on the target PC. If live values update while past dates stay blank, verify that Find Existing registered the pasted directory and that no custom StorageLocation folder was missed.

Questions asked

Why does creating a Snapshot ChangeSet leave VTScada trends empty on the new PC?

VTScada ChangeSets, including Snapshot ChangeSets and Clone from ChangeSet, package only application code, configuration, tags, pages, custom drivers, and version-control logic. They explicitly exclude logged process history, alarm history, I/O setpoint history, operator actions, and saved Historical Data Viewer pen groups. Moving historical data between offline workstations requires copying the full application directory and registering it through Find Existing rather than cloning from a ChangeSet.

Can you store VTScada native history on a network share or USB drive to move it easily?

No. VTScada warns against pointing a Historian tag StorageLocation to network shares or USB drives because disk latency and interrupted writes risk corrupting the binary history store. Keep active native history on local storage and copy the full directory only while the application is stopped. For ongoing outward transfers from isolated high-security networks without bi-directional links, VTScada 12.2 adds unidirectional Data Diode support.

Why do CSV files exported from the Historical Data Viewer show averaged values instead of raw samples?

Exporting through the Historical Data Viewer Export Wizard from Plot or Graph View outputs pixel-averaged values rather than raw stored samples. Switch to Grid View before running the export to output raw data alongside optional averages, minimums, or maximums to CSV, Excel, Access, or an ODBC target. Note that VTScada Anywhere Client exports are limited to CSV only, and when VTScada runs as a Windows service you should not choose Excel as a report output.

Can third-party reporting tools read VTScada native historian files directly from the Data folder?

No. The native binary FileDB store inside the Data folder is closed to direct external file access, and opening or modifying raw files risks corrupting the archive. Supported read paths are the Historical Data Viewer, Report Studio, the built-in VTScada ODBC Server, an SQL View Tag, or the native SQL Virtual Tables introduced in VTScada 12.1. If an ODBC query triggers a warning about opening the Temporary (volatile) Jet DSN registry key, verify the Windows account permissions.

Keep reading

  • Troubleshooting

    Why historian data goes missing and reappears the next day

    Data that reappears by the next morning was never lost: it reached the affected Historian late and was committed to history with its original timestamps. Anchor the gap start to the logger's block-creation entry, clear the source side with the second Historian on the same OI Server, then set the registry value documented in AVEVA support article 000041658 on the affected server and verify across two block switches.

    Edge computing and IIoT

  • Troubleshooting

    Reading default historian data in SQL Server the supported way

    Attaching a SQL Server DSN to the SystemHistorian tag does store the historian's tables in SQL Server, but they are keyed to internal tag IDs, not tag names. Keep the default historian as the store and read the data through the REST SQLQuery endpoint, building an ID-to-name lookup from the Parms tables and paging large ranges in blocks of about ten thousand records.

    Edge computing and IIoT

  • How-to

    Find the timestamp when a historian point equals a value

    Use PI DataLink's Calculated Data function with a FindEq performance equation: FindEq returns the timestamp closest to the window's start where the point or attribute equals your target value. Enter the integer lab date as the target and a window covering the entry period. Because the PLC copies the whole block in a couple of seconds, pull the associated points over tens of seconds around the returned timestamp.

    Edge computing and IIoT

Stop duplicate InTouch alarms in Historian on TSE