IMD SolutionComputing LibraryShop main store

Troubleshooting

Why VTScada CSV history import does not load your files

Edge computing and IIoT Published 6 min read

Short answer

VTScada CSV history import that loads nothing and logs nothing means the Tag History Import feature is missing from the build. The feature arrived in version 11.3.14; upgrading to 11.3.20 or later fixes it, and VTScadaLight supports the import once the build is new enough.

On this page
  1. Why does VTScada never even try to read the CSV files?
  2. Which VTScada version added CSV history import?
  3. How do you confirm the CSVHistoryImporter module is in the running build?
  4. Where does VTScada expect the CSV files and TagMapping.CSV?
  5. Does the receiving tag qualify as a destination for imported history?
  6. How do you upgrade and prove the import worked?
  7. What if the history still does not show after the upgrade?
  8. Questions asked

If VTScada restarts, loads its tags and never even opens the CSV files, the Tag History Import feature does not exist in your build. The feature shipped in version 11.3.14, so a build one revision older has nothing to trigger: the folder layout can be perfect and no code will ever look at it. Upgrading to a newer build fixes it, and VTScadaLight supports the feature like any other edition once the build is new enough. The checks below are ordered so a version gap separates itself from a folder, mapping or tag fault in minutes.

Why does VTScada never even try to read the CSV files? #

Total silence is the signature of a missing feature: on a build like 11.3.13 the Tag History Import utility simply does not exist, so nothing in the running code ever looks at the CSVHistory folder and no error is logged, because there is no importer to fail.

A file-level fault leaves traces. A missing data file, a misspelled folder name or a malformed mapping row all produce an attempt to open the file and a log entry when it fails. Complete silence while live trending works means the code that would do the looking was never installed. The edition does not matter at this stage: a missing module is easy to misread as a Light limitation, and the build number is what actually tracks the feature.

Which VTScada version added CSV history import? #

The Tag History Import feature, including the CSVHistoryImporter module, was introduced in VTScada 11.3.14; any build below that lacks it, and upgrading to 11.3.20 or later is the confirmed fix that also works in VTScadaLight.

Read the version from the application's About dialog or the installed-programs list, then compare it as numbers. The failing installation reported 11.3.13 against the introduction point 11.3.14: the first two segments match and the third decides, 13 is less than 14, so the feature is not in the build. No amount of folder or file editing can add code the installer never put there.

Build Tag History Import Decision
11.3.13, the reported failing build Absent Upgrade; file and folder checks cannot help
11.3.14, the introduction build Present Continue with the module and folder checks
11.3.20, confirmed working on Light Present Target build for the upgrade

How do you confirm the CSVHistoryImporter module is in the running build? #

Open the VTScada Source Debugger and search the module tree for CSVHistoryImporter: if it is absent, the build predates the feature and upgrading is the only fix; if it is present, the cause lies in the folder layout, the mapping file or the tag itself.

This is the direct test that separates a missing-feature fault from a configuration fault. Confirm the version before concluding that Light is the reason, because the feature gap follows the build number, not the edition. When the module is present, move on to the folder and tag checks below.

Where does VTScada expect the CSV files and TagMapping.CSV? #

The importer reads from a folder named exactly CSVHistory inside the Data directory of the specific application you started, and that folder must hold TagMapping.CSV sitting next to the data CSV file or files.

Verify each of these before suspecting the importer itself:

  • The folder sits under the Data directory of the application you actually started, not a second application or the install root.
  • The folder name is spelled exactly CSVHistory.
  • TagMapping.CSV and the data file are in that same folder.
  • The data file is complete and not locked open by a spreadsheet or another editor.
  • The column layout of both files comes from the VTScada documentation for your build, not from another historian's export format.

Note the difference in jobs: this feature back-fills history into the integrated historian. Reading live values from a CSV into tags is a different mechanism, covered in Reading a CSV file into VTScada: DDE, XML or ODBC paths.

Does the receiving tag qualify as a destination for imported history? #

The tag named in TagMapping.CSV must already exist in the running application with Historian logging enabled, and the tags must be started before the import runs, because the importer maps CSV rows onto running tags by name.

The test setup used an Analog Status tag with Historian enabled, which is a typical choice for this job. Compare the name character for character, including any area or folder prefix in the full tag name, because a near match attaches nothing and raises no error. A tag name in the mapping file that does not match a loaded tag leaves the data unattached even when the file itself is read correctly.

How do you upgrade and prove the import worked? #

Install a build at or above 11.3.20 over the existing installation: existing applications are updated in place and are not lost, and the import feature is confirmed working in VTScadaLight at that build.

  1. Stop the running application and close VTScada.
  2. Back up the application folder, including the CSVHistory directory, as routine practice before any version change.
  3. Download the newer build from the manufacturer's download area; 11.3.20 is the build confirmed working for this feature.
  4. Run the installer over the existing installation.
  5. Confirm the folder still holds TagMapping.CSV and the data CSV file.
  6. Start the application and let the tags load and start.
  7. Open the Source Debugger and confirm CSVHistoryImporter now appears in the module tree.
  8. Open a trend for the mapped tag, set the time range to cover the CSV timestamps, and confirm the imported values appear alongside the live data.

If step 7 passes but step 8 shows no data, the version problem is solved and the remaining fault is configuration: go back to the folder and tag checks.

What if the history still does not show after the upgrade? #

Work the chain in order: confirm CSVHistoryImporter now appears in the module tree, verify every name in TagMapping.CSV matches a running Historian-enabled tag character for character, then set the trend time range to cover the timestamps inside the data file.

A trend range that ends before the CSV data begins looks identical to a failed import, so set the range explicitly rather than trusting the default view. If you read the imported data back out through the VTScada ODBC driver and see nothing there either, the next step is checking the VTScada ODBC driver log instead of reinstalling the software.

The decision is short. A build below the introduction point means upgrade, and no file edit substitutes for it. A build at or above it means the fault is in the folder, the mapping or the tag, and the checks above find which one.

Questions asked

Does VTScadaLight support CSV history import at all?

Yes, once the build is new enough. The feature appeared in VTScada 11.3.14 and ships in VTScadaLight too; build 11.3.20 was tested with the import working. An older Light build fails exactly the way a full installation would, because the limitation is the version number, not the edition. Read the version from the About dialog before blaming the edition.

Can I import history that another brand of SCADA software collected?

Yes. The import utility is documented for mapping historian data from applications based on other brands of SCADA software into a VTScada application's integrated historian. The TagMapping.CSV file supplies the mapping and the data CSV supplies the values; take the exact column layout of both files from the VTScada documentation for your build rather than reusing another system's export format.

Why must the target tags be started before the import runs?

The importer attaches CSV rows to tags by matching the full tag name in TagMapping.CSV against tags that are loaded and running in the application. A name that differs by one character, or a tag that has not been started, leaves the imported values with nowhere to land, so the points never appear in any trend and no error is raised.

Keep reading

  • Comparison

    Reading a CSV file into VTScada: DDE, XML or ODBC paths

    A constantly updating CSV reaches VTScada fastest through Excel and the DDE client driver, using the Data > From Text/CSV import and R1C1 cell addressing. Those values reach the historian only if the receiving tags have logging enabled, and they arrive as snapshots of the newest value, not as the file's rows. A local JSON or XML service removes the Excel dependency, while backfilling the file's own timestamps needs a separate historical import.

    Edge computing and IIoT

  • Troubleshooting

    Why an Ignition historian import does not display data

    A successful LOAD DATA import proves only that MySQL accepted the rows. Ignition still has to resolve each sample's tag ID through sqlth_te and find the partition whose time range covers it, so verify the ID remap and the partition ranges before testing the created value on a clone.

    Edge computing and IIoT

  • How-to

    Backfilling trend history from a plant historian

    Yes, you can backfill trend history from a plant historian into a SCADA server. Extract the stored records through the historian's native export or ODBC interface, map each source point to its destination object with original timestamps and quality, insert the batches through the destination's documented history methods, and prove the import by reading the interval back from the destination. A saved CSV is a bridge, not proof of import.

    Edge computing and IIoT

Why Excel historian add-ins do not load in PowerShell automation