Troubleshooting
Why VTScada CSV history import does not load your files
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
- Why does VTScada never even try to read the CSV files?
- Which VTScada version added CSV history import?
- How do you confirm the CSVHistoryImporter module is in the running build?
- Where does VTScada expect the CSV files and TagMapping.CSV?
- Does the receiving tag qualify as a destination for imported history?
- How do you upgrade and prove the import worked?
- What if the history still does not show after the upgrade?
- 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.CSVand 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.
- Stop the running application and close VTScada.
- Back up the application folder, including the
CSVHistorydirectory, as routine practice before any version change. - Download the newer build from the manufacturer's download area; 11.3.20 is the build confirmed working for this feature.
- Run the installer over the existing installation.
- Confirm the folder still holds
TagMapping.CSVand the data CSV file. - Start the application and let the tags load and start.
- Open the Source Debugger and confirm
CSVHistoryImporternow appears in the module tree. - 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.