IMD SolutionComputing LibraryShop main store

Troubleshooting

Ignition 8.3.1 historian skips tags with invalid source timestamps

Edge computing and IIoT Published 6 min read

Short answer

In Ignition 8.3.1, an OPC UA connection set to prefer source timestamps no longer falls back to the server timestamp when the source stamp arrives invalid, so affected tags keep good live values but store no history. The defect is tracked as IGN-14714 and the fix ships in 8.3.2. Set that connection to prefer server timestamps, or split the affected tags onto a second connection, until you upgrade.

On this page
  1. The defect: a broken fallback to the server timestamp
  2. Rule out the usual suspects first
  3. Confirm the fault in four checks
  4. Change the timestamp source on that connection
  5. Worked example: proving the fix on a gateway that ran 8.3.1 for a week
  6. Close out: interpolation, quarantine and the version decision
  7. Questions asked

Your Micro800 tags show good-quality live values and store no history at all, and the empty tables began the day the gateway moved to 8.3.1. The tag history configuration is not at fault. 8.3.1 added a timestamp-source option to the OPC UA connection, and with it set to prefer source timestamps, a value whose source timestamp arrives invalid no longer falls back to the server timestamp as designed. The value still lands on the tag, so quality reads Good, but the historian never receives a usable timestamp for that sample and writes no row. The defect is tracked as IGN-14714 and is fixed in 8.3.2. Until then, set the connection to prefer server timestamps, or split the affected tags onto a second connection.

The defect: a broken fallback to the server timestamp #

The OPC UA connection configuration decides where each incoming value's timestamp comes from, with options that include OPC_PREFER_SOURCE and OPC_PREFER_SERVER. In OPC UA, the source timestamp is the time the data source itself applied to the value; the server timestamp is when the OPC UA server received it. With OPC_PREFER_SOURCE, the connection uses the source stamp when it is available and is designed to fall back to the server stamp when it is not.

In 8.3.1 that fallback is broken. When the source timestamp arrives invalid rather than absent, the connection does not revert to the server timestamp. The value itself still reaches the tag, which is why the panel looks healthy, but the historian never gets a usable stamp for the sample and stores nothing. A reasonable timestamp still appears in tag queries because one is applied after the tag value changes and before the historian processes the sample.

The trigger is per OPC item, not per PLC family. Any item on a prefer-source connection whose source stamp arrives invalid takes the same hit, whichever driver produced it. On the gateway that reported this fault, the ControlLogix path delivered valid source timestamps and kept logging to the same database, while the Micro800 path did not.

Rule out the usual suspects first #

Each of these is the first thing engineers reach for on this symptom, and the evidence already clears every one:

  • The history configuration. It matches the ControlLogix tags that log fine, and disabling and re-enabling history writes back the same settings.
  • Sample mode and deadband. Value changes reach the tag — you can watch them live — so sampling is not what drops the row. Deadband only bites when a value genuinely sits unchanged, the case covered in when deadband and max time decide what tag history stores.
  • Database space and partitions. Other tags are writing rows into the same database on the same schedule.
  • Driver and connection health. The live value proves the read path and the OPC subscription both work.
  • Store-and-forward. The quarantine is empty because nothing was ever submitted; the drop happens upstream of the store.
  • A gateway restart. It comes back with the same behavior, because the invalid stamp is regenerated on the next value change.

If none of that matches your evidence, work through why Ignition historian tags stopped recording while live data stays good for the broader set of causes.

Confirm the fault in four checks #

  1. Read the gateway version. It must be 8.3.1, with the same tags holding history on 8.3.0 before the upgrade.
  2. Force value changes on an affected tag and watch its timestamp in the tag browser against the gateway clock.
  3. Query the historian: find the tag's id in the provider's tag table, count its rows in the current month's data tables since the upgrade moment, and run the same count for a known-good ControlLogix tag on the same provider. Zero for one and a normal count for the other clears the database and the provider.
  4. Open the OPC UA connection the tag rides and read its timestamp source option. OPC_PREFER_SOURCE is your match, and that connection just became the prime suspect.

Change the timestamp source on that connection #

The workaround is one setting, but it applies to every tag on the connection, so inventory before you flip it:

  1. List every device, driver and external source feeding items through the connection.
  2. Decide which of them publish meaningful source timestamps — third-party OPC UA servers, edge devices that buffer and stamp before delivery, sequence-of-events data. Those tags give up their source stamp and take the server's receive time instead.
  3. If the connection carries only PLC drivers whose PLCs do not stamp values themselves, the switch changes nothing you record, because the server stamp was already in use.
  4. Set the option to OPC_PREFER_SERVER and save. The connection reconnects and the subscriptions rebuild.
  5. Force a value change on an affected tag and recount its rows.
  6. Write the change into the gateway's change log, because the next engineer will find row times that no longer match the PLC's own clock.

If part of the tag set must keep source timestamps, contain the change: create a second OPC UA connection to the same server endpoint, move only the affected tags onto it, and set OPC_PREFER_SERVER on that one connection alone.

Worked example: proving the fix on a gateway that ran 8.3.1 for a week #

Inputs, with where each comes from:

  • Fault window: about 7 days on 8.3.1 before the fix was applied, the window in the case this article answers.
  • Verification drive: 10 minutes on a changing analog, the standard drive length for proving tag history.
  • Reference: a ControlLogix tag on the same provider with the same sample mode and rate, which kept logging throughout.

The rule, in words: a row count over a short window scales to an hourly rate by the ratio of an hour to the window, and after the change the affected tag's rate must be nonzero and within the same order of magnitude as the reference tag's rate. The gap each tag carries is the fault window in days times 24.

The arithmetic:

  • Gap per affected tag: 7 days x 24 h/day = 168 h.
  • Rate from the drive: rows in the window x (60 min / 10 min) = rows x 6 per hour.

The result: before the change, the affected tag's count over any window since the upgrade is zero. After it, a nonzero count whose scaled rate lands within an order of magnitude of the reference tag's rate proves rows are being stored again, while the 168 h hole stays in the tables for good.

The decision: zero rows after the change means the tag rides a different connection than the one you edited, so find it and repeat there. Rows present but stamped at epoch zero or far in the past mean the stamp still comes from the broken path: take the 8.3.2 route or roll back. Rows present and tracking the gateway clock close the fault, and OPC_PREFER_SERVER stays on that connection until the fixed release is running.

Close out: interpolation, quarantine and the version decision #

Turn interpolation off in Easy Chart while you verify. Interpolation connects the sparse points on either side of the gap with a straight line, which is how a dead tag passed for a slow one. After the reconnect, confirm tag quality still reads Good, the history flag is still enabled, the store-and-forward quarantine stays at zero, and stored timestamps advance monotonically with the gateway clock.

8.3.2 carries the IGN-14714 fix. Until it is released, production keeps the workaround. If you cannot change the preference and cannot wait, roll back to 8.3.0, where the option and the defect do not exist; history resumes with no tag edits, because the configuration was never wrong.

Questions asked

Will the history that was missed come back after the fix?

No. The historian stores only samples it receives, and none were submitted while the fault ran, so store-and-forward holds nothing to replay and the tables keep the hole. Record the upgrade moment and the moment you changed the timestamp source, and annotate any chart that spans the window, so nobody reads the interpolated straight line across the gap as real data.

Does the defect also stop memory tags, expression tags or query tags?

No. The broken code is the OPC UA connection's handling of source timestamps, so only values arriving through a prefer-source connection are exposed. Tags evaluated on the gateway carry the gateway's own clock and keep storing normally, which gives you a comparison: a memory tag recording beside a dead OPC tag points at the connection, not at the history provider or the database.

Can I run the 8.3.2 release candidate under production history?

Treat the release candidate as a test build. Confirm on a development gateway that an affected tag stores rows again, then keep production on the server-timestamp workaround or on 8.3.0 until 8.3.2 is formally released. A candidate build can still change before release, and history written under a pre-release is awkward to defend when the record is audited.

Does switching to server preference rewrite timestamps that are already stored?

No. The preference applies to samples that arrive after the connection reconnects; rows already stored keep the timestamps they were written with, so nothing in the database is rewritten. A chart that spans the changeover shows source stamps before it and receive times after it.

Keep reading

  • How-to

    Expose only approved Ignition tags to an external historian

    No — on Ignition 8.1 an authenticated OPC UA client browses everything, and the gateway will not run a second UA server. Republish only the approved tags through a separate server such as Node-RED with the Ignition Node-RED module, firewall Ignition's own endpoint, or move to 8.3 role-based access.

    Edge computing and IIoT

  • Troubleshooting

    Why Ignition historian tags stopped recording but live data is good

    Correct live values, an executing historical scan class and a valid database connection prove acquisition only. Set Timestamp Source to System so Max Time Between Records of 10 seconds forces samples against the gateway clock, then read the Store and Forward queue direction and the database's own insert errors. Zero stored rows against a timed minimum count means the write path, not the tag, has failed.

    Edge computing and IIoT

  • Troubleshooting

    Fix Ignition SQL Server connection faults after an upgrade

    After an Ignition 8.1.x upgrade, a faulted SQL Server connection is almost never a credentials problem: the new Java runtime disables TLS 1.0 and 1.1 (builds from 8u291), and a Microsoft JDBC driver as old as 4.0 cannot run on it. Read the Gateway exception, then patch SQL Server to TLS 1.2 per KB3135244 or replace the driver; the reported working pair was 9.4 in place of 4.0.

    Edge computing and IIoT

Fix Historian timeout error 1460 after a 23.1 upgrade