Skip to main content

AVEVA Historian

info

AVEVA Historian ingestion has two paths: historical migration and continuous synchronization. Continuous synchronization further depends on whether the History or Live source table is selected. Verify each mode separately: for History, check pre-start historical data and post-start new values separately; for Live, check only the current values captured by polling.

Entry point: taosExplorer → Data Ingestion → AVEVA Historian.

Do not use the same record-count criteria to verify current-value reads and archive reads.

1. Prerequisites​

Obtain the address, port, authentication, and test tags from the Historian administrator. Confirm that the taosX or taosX-Agent host actually performing the reads has the required access environment. Record times, values, and quality/status for a short historical range. Have an authorized TDengine TSDB administrator create an independent target database in the taosExplorer Data Browser or taos CLI.

PrerequisiteHow to confirm
Execution host and networkAccess the source query service from the actual taosX or taosX-Agent host. The common port is 1433; use the actual site port. Do not check only the host running the Historian browser or client.
Source permissionsProvide a source identity that can query Runtime.dbo.History and, if needed, Runtime.dbo.Live. Define the authorized test tag scope.
Encryption requirementsHave the administrator confirm the source service's encryption level. The UI initial value NotSupported is not a security recommendation for production. Even with encryption required, this entry point does not verify server certificate identity. Confirm a solution with technical support first if strict identity verification is required.
Data comparison criteriaFor historical samples, record the query method, time, value, and quality/status. Do not treat interpolated results as original change points. Confirm that the actual reading host's time zone agrees with the interpretation of source times without offsets. Check historical data spanning daylight saving time separately; checking only the browser time zone is insufficient.
TargetPrepare an independent database and write identity. Determine supertables and child tables from the actual tag types; do not force all values to floating point.

2. Minimal historical migration​

Under Data Ingestion, click Create New Task, select AVEVA Historian, enter a name identifying the source and window, and select an independent target database and the agent that will actually run the task. With a direct connection, taosX reads the source; when an agent is selected, that agent reads it. Check the address, identity, and file permissions on the actual reading host.

AVEVA Historian service address, port, and connection retry configuration

Under Authentication, enter the source user, password, and encryption level required by the administrator, then click Check Connectivity. The source identity differs from the TDengine target write identity. After the check succeeds, retrieve authorized tag data and verify the target.

AVEVA Historian user, password, and encryption level

  1. Add an AVEVA Historian data source, select the target database and agent, enter the connection, username, and password, and check connectivity.
  2. Set collection mode to migrate. Enter only one confirmed test tag, and specify the start time, end time, and page time zone.
  3. Check that the end time is later than the start time. Configure a small query window greater than zero (DSN key timeWindow). The tag group size only needs to cover this example's scope; do not raise concurrency at the outset. Do not use a zero window: even if accepted, the configuration may repeatedly query an empty range without advancing.
  4. Retrieve a sample from the server. In data mapping, check the tag identifier, time, value, and quality fields, then map them to the confirmed supertable and child table. Record the actual table and column names. Preview, submit, and start the task.

Actual samples and mapping determine the target table structure. Do not assume that all source tags are floating point. An authorized TDengine TSDB administrator must prepare any required target databases and tables.

AVEVA Historian historical migration tags, range, and window configuration

3. Choose a continuous synchronization method​

ModeMain configuration and meaning
migrateBounded start/end times, tag groups, and historical query window.
synchronize + Runtime.dbo.HistoryBackfills pre-start historical data from the start time while continuously querying post-start archives. Also configure the real-time query interval and maximum out-of-order time. The continuous task does not stop at the entered end time.
synchronize + Runtime.dbo.LiveReads current data at the real-time synchronization interval. It does not replace complete archive migration.

The maximum out-of-order time delays the query upper bound to allow late source records to be stored. It does not repeatedly rescan completed windows or cover indefinitely late data. Complete the historical test first, then separately verify continuous new values and late samples. Verify historical backfill and new-value reads separately: normal new values or a running task do not prove that pre-start historical data is complete. Saving raw data is a diagnostic and retention configuration, not a backup and recovery mechanism. Its retention rules do not apply to other connectors.

After selecting synchronize, first select Runtime.dbo.History under Table, then enter the start time, historical window, and subsequent synchronization interval. After verifying the historical portion, ask the source administrator to generate a new record and verify continuous reads. If late records must be handled, separately check results inside and outside the configured out-of-order limit.

History continuous synchronization start time, historical window, real-time interval, and out-of-order configuration

After selecting Runtime.dbo.Live, the page retains only relevant items such as tags and the real-time synchronization interval. Record the current source value first, then generate a new value and check the target. Changes that occur within a polling interval and are replaced by subsequent values cannot be verified against historical archive counts.

Live continuous synchronization tags and polling interval

3.1 Fields for each mode​

FieldHistorical migrationHistory continuous synchronizationLive continuous synchronization
Collection mode/tablemigrate / Runtime.dbo.Historysynchronize / Runtime.dbo.Historysynchronize / Runtime.dbo.Live
TagsEnter one or more actual tags, separated by commas.Same as left.Enter exact tag names. Only a standalone * means all non-system tags; do not use partial wildcards such as ABC*.
Tag group sizeControls tags per group, not read thread count. Default 10; use 1 for the first single-tag test.Same as left.Configure the items shown at this entry point. Do not infer real-time behavior from historical grouping windows.
Start/end timesSpecify both explicitly.Specify the start time explicitly.Does not use a start time to reread archives.
Query time windowDivides the historical range. Initially 1 day; reduce it for practice.Used for the historical phase.Not applicable.
Real-time synchronization intervalNot applicable.Polls subsequent historical data; default 10 seconds.Polls current values; default 10 seconds.
Maximum out-of-order timeNot a real-time compensation setting.Shown in milliseconds; default 0. Set according to source lateness boundaries.Cannot reconstruct all changes between polls.
warning

The initial tag value in the UI is *, which broadens the read scope. For the first test, replace it with one authorized test tag. Do not add extra spaces around commas or leave empty entries. History and server sampling can expand partial wildcards, but production Live reads exact names. Obtaining samples with ABC* therefore does not mean the same configuration can continuously read new values.

Enter start/end times in the time zone selected on the page. Do not treat displayed values without offsets as UTC. Interpretation of actual source queries and returned times is also affected by the time zone of the taosX or taosX-Agent reading host. For historical data spanning a daylight saving time transition, check target times using known records from before and after the transition, not only current new values. Recheck the displayed fields after changing modes. Do not merely change the table name while retaining the old task's verification scope.

3.2 Connection and advanced options​

The UI initial connection timeout is 120 seconds. It limits only TCP connection establishment, not subsequent login, SQL execution, or the entire sample request. The initial reconnect attempt count is 10. The first attempt is immediate, with a wait before subsequent attempts; the initial interval is 5 seconds. Initial connections, connectivity checks, and sampling do not use the production query reconnect loop. Increasing retries does not resolve identity errors or slow SQL. A recovered connection does not guarantee that business data is complete; check the interruption window after recovery.

Encryption level distinguishes transport encryption from server identity verification. Even when set to Required, this entry point still trusts the server certificate and does not provide the SQL Server ingestion parameters trust_cert or trust_cert_ca. Until strict identity verification requirements are confirmed, do not treat successful connectivity as security verification. The direct DSN encryption default differs from the UI initial value. Case, aliases, unknown-value fallback, duration units, and conditions are documented centrally in AVEVA Historian read parameters; no duplicate parameter table is maintained here.

3.3 From sample to target mapping​

  1. First have the source administrator confirm that the test tag exists. Then click Retrieve from Server in the data mapping area and check each returned tag identifier, test range, time, value, and quality column. If the specified tags match nothing, sampling may fall back to other non-system tags. A nonempty sample does not prove that the entered tags matched. Stop immediately if returned tags differ; do not build a model or start the task from them. If the sample is empty, check tags, time, and source read permissions before creating potentially mismatched target tables.
  2. Add a rule only if the sample actually contains a string to split. For example, if vValue contains two values separated by a comma by agreement, select split, delimiter ,, and count 2, then check vValue_0 and vValue_1. Do not split source values that are already numeric.
  3. Filter only records that the business explicitly does not need. For example, if source field Value is truly numeric and only positive values are required, set Value > 0. Preview positive values, zero, and negative values separately, and record the excluded scope. Do not treat this demonstration condition as a default rule for all industrial points.
  4. Select the actual target supertable. Map source time, value, quality, and tags individually, check child table naming, and click Preview. After one numeric tag passes, separately check strings, quality, and other actual types.
  5. Check the advanced options and error policy below, click Submit, find the original task in the list and confirm it has started, then verify as described in section 4. A successful preview does not mean the production task is running.

For expression and mapping syntax, see Extraction, splitting, filtering, and transformation and Target table modeling and field mapping.

The following figure shows mapping for a set of numeric tags: target ts maps to source DateTime, val to Value, and tag name to TagName; child tables use t_{TagName} to distinguish tags. Preview Mapping Results on the right allows checking expanded child table names, times, numeric values, and tags. These are not production ingestion results. The example does not configure the optional splitting or filtering mentioned earlier and does not save a quality column. If quality data is required, map it separately from the actual sample. Do not treat this figure as a complete production model.

AVEVA Historian source fields, mapping configuration, and result preview for each tag

my_tag_*, supertable stb, dates, and values in the figure are independent examples, not substitutes for the single-tag exercise provided by the source administrator. Before creating actual objects, confirm that the DateTime time zone agrees with target time interpretation. String-valued tags also cannot directly use the figure's DOUBLE type. After a correct preview, record the actual expanded database, supertable, child tables, and columns for query verification in section 4.

3.4 Advanced options and raw data​

AVEVA Historian read batches, raw data retention, and health monitoring

Maximum Read Concurrency and Batch Size differ from tag group size and query window. The corresponding directory and retention settings apply only when saving raw data is enabled. The directory is on the actual reading host and requires write permission. This connector's retention parameter controls the number of rotated files; do not interpret the page's "maximum retention days" as strict calendar-day deletion. For retention and disk checks, see Tuning and resource control. For write error handling, see Write errors and invalid data.

The new form initially sets read concurrency to 0, batch size to 10000, and saving raw data to off. Retain the baseline configuration for the first run. If raw data is needed for Troubleshooting, specify a controlled directory on the actual collection host, restart the original task and confirm new samples, then disable retention according to the retention requirements. The form's path hint illustrates a variable; it is not a directory on the browser host.

Read concurrency and batch size apply to historical migration and the historical backfill phase of History synchronization. They do not control subsequent continuous polling for History or Live. For direct DSN defaults, zero values, and retention directory rules, see AVEVA advanced parameters. Check the values actually submitted by the form separately.

3.5 Write error policy​

Before saving the task, confirm each Error Handling Policy item. Check tag types, quality columns, and business time first. Automatic column expansion and target cache cannot reconstruct changes never captured between Live polls. Archives also do not replace source History data or raw data retention.

For error actions, defaults, and cache and archive settings, see Write errors.

4. Verification​

In the taosExplorer Data Browser or taos CLI, query the actual mapped child tables and compare times and values for the same tag and window. Use the same source query criteria as the migration. Do not directly compare interpolated or aggregated results with target row counts.

For example, use the following queries only if this exercise actually names the independent target database historian_demo and uses the earlier figure's stb(ts, val) and tag name mapping. Replace the tag and start/end times with the administrator-confirmed practice range. If the actual database, tables, or columns differ, replace those identifiers too. Verify source history using wwRetrievalMode='full' and the same start-inclusive, end-exclusive range. Do not treat the UI sample row count as the total expected ingestion volume.

SELECT COUNT(*), MIN(ts), MAX(ts)
FROM historian_demo.stb
WHERE name = 'my_tag_01'
AND ts >= '2026-01-01T00:00:00+08:00'
AND ts < '2026-01-01T00:10:00+08:00';

SELECT TBNAME, ts, val, name
FROM historian_demo.stb
WHERE name = 'my_tag_01'
AND ts >= '2026-01-01T00:00:00+08:00'
AND ts < '2026-01-01T00:10:00+08:00'
ORDER BY ts;
  1. First compare times, values, and tags record by record in a short range, then compare counts and first/last times. If target time primary keys overwrite duplicate times in the same child table, source raw row counts alone are insufficient.
  2. If quality/status columns are retained, add the actual columns to the detail query and verify them. The earlier figure has no quality column; do not claim that its mapping preserves source quality.
  3. For History continuous synchronization, save separate verification results for the pre-start historical window and post-start new values. Normal new values do not rule out failed historical backfill. To verify lateness limits, the source administrator must provide records with known write times and business times.
  4. For Live, first record a current source value, then generate a new value and check the target after polling and processing. Changes overwritten between polls are not subject to historical migration completeness requirements.

5. Troubleshooting​

SymptomChecks
Authentication or query failureCheck the execution host, account, source table permissions, and source query service.
No data in the historical rangeCheck tags, time zone, and whether Live was selected by mistake.
Gaps in real-time recordsCheck source lateness, out-of-order limit, and polling interval.
Live sample has values but production has no new valuesCheck whether tags use partial wildcards such as ABC*. Change to authorized exact names, resample, and verify new values. Do not immediately broaden the scope to all tags.
Historical task runs without advancingFirst check that the time window is greater than zero and the end is later than the start. Do not only increase connection timeout or concurrency.
All times shifted or inconsistent across seasonsCheck source times without offsets, page input offsets, the actual reading host's time zone, and historical daylight saving time samples. Retain source/target comparisons and contact technical support.

For other task, write, and runtime issues, see Troubleshooting by symptom.

6. Stopping, recovery, and limitations​

Retain the original task and mapping and record verified boundaries. After recovery, check the historical window and new values separately for gaps and duplicates. Successful reconnection or an existing checkpoint does not replace data checks. Do not add taskId to a DSN yourself to obtain a recovery identity; it is not a user-overridable position. For interruption-window checks and backfill methods, see Restarts, checkpoints, and store-and-forward. Intermediate changes missed by Live polling cannot be expected to backfill automatically on this basis. Reassess source load and recovery scope before stopping, changing modes, or expanding the tag range.