IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Ignition historian tags stopped recording but live data is good

Edge computing and IIoT Published 6 min read

Short answer

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.

On this page
  1. What your good readings prove
  2. Set Timestamp Source to System on the probe tag
  3. Confirm the destination you are querying
  4. Worked example: five minutes at Max Time Between Records of 10 seconds
  5. Read Store and Forward direction, not the count
  6. Make the database prove an insert
  7. The decision for each finding
  8. Questions asked

Your three good readings — correct live values, an executing historical scan class under Status>Tags, and a valid connection under Status>Database Connections — prove acquisition, not persistence. The tag is being read and the gateway can reach the database; neither reading shows a row being written. Work this in order: first the tag's Timestamp Source, because Max Time Between Records only forces periodic samples when they are keyed to a clock that advances; then the Store and Forward queue direction; then the database's own insert errors. A brand-new tag failing to record the same way confirms the fault sits in that shared path, not in any one tag, so stop toggling tags and work the pipeline.

What your good readings prove #

Reading you have What it proves What it leaves open
Live value correct, quality good The driver delivers the value to the gateway That a history record was ever created
Historical scan class executing under Status>Tags The sampling schedule runs That samples become stored rows
Connection valid under Status>Database Connections The gateway can log in to the database That inserts, space or grants allow writes
A new tag also records nothing The fault is in the shared path Anything about any single tag's configuration

Treat the symptom as a pipeline with four stages: sample, timestamp, queue, insert. Your checks have cleared the first stage only, so work the remaining three in order instead of rebuilding tags or screen bindings.

Set Timestamp Source to System on the probe tag #

Recording is configured per tag from the History section of the Tag Editor, and Timestamp Source decides which of two clocks a stored sample carries: the time that arrived with the value, or the time the gateway evaluated the tag.

On Value, the record is keyed to the incoming timestamp. A device that resends an unchanged timestamp gives the historian nothing new to key, so the live value and quality stay good while the table gains nothing — exactly the state you are in. On System, every execution is stamped from the gateway clock, so the maximum-gap setting forces a record whether or not the value moved.

For periodic recording — which is what a 10-second maximum gap asks for — System is the correct setting. Use Value only where the device's own measurement time is the timestamp you must store, and only after watching those timestamps advance. Which clock wins is also the whole story behind the mirror symptom, why the historian can show current time for backdated PLC data.

Change one probe tag, leave the rest alone, and size the test with the count below.

Confirm the destination you are querying #

  • Open the probe tag's history settings, confirm recording is enabled, and note the history destination and the scan class it names.
  • Query the tables that destination writes to, using the database's own tools, and read the newest stored timestamp rather than a row count.
  • Compare that timestamp against gateway time and against the range your trend is asking for.
  • Where several gateways share one database, confirm which gateway wrote the rows you are counting: identifying the source gateway in a shared historian database.
  • Fresh rows with a blank trend is a retrieval fault — binding tag path, time range, or time-zone reading — so fix the query, not the historian.

Worked example: five minutes at Max Time Between Records of 10 seconds #

Inputs:

  • Max Time Between Records = 10 s, the value already set on the probe tag in this fault.
  • Timestamp Source = System, set on that tag for the test.
  • Observation window = 5 min (300 s), the timed window for the count.
  • Tags under test = 1.

Rule in words: when samples are keyed to the gateway clock, the maximum-gap setting forces a stored record whenever the gap since the last stored record would exceed 10 s. Any observation window must therefore gain at least the window divided by the gap.

Arithmetic:

300 s ÷ 10 s per record = 30 records minimum

A value changing faster than its deadband adds records; nothing reduces the count below 30 while sampling executes and the clock advances. The minimum scales with the window: 10 min at the same gap demands 600 s ÷ 10 s = 60 records.

Result: the table gained 0 rows in the window — the reported state of this fault.

Decision: 0 rows against a minimum of 30 — equivalently, a newest stored timestamp more than 5 min old — convicts the write path, not the tag, while the scan class executes and the connection stays valid. Go to Store and Forward next. If switching the probe tag to System alone brings the count to 30 or more, the root cause is stalled value timestamps at the source: leave System in place for periodic recording, or repair the source timestamps where device time is a requirement.

Read Store and Forward direction, not the count #

One pending count says little; the trend over a few minutes says everything:

  • Pending rising while sampling runs — records are generated but not landing. The fault is downstream: database space, grants, locking, or write throughput.
  • Failed records logged with errors — read the error against the operation it names before changing anything.
  • Pending flat at zero with no new rows — nothing is being queued. Return to Timestamp Source and the destination; the database is not your problem yet.
  • Pending falling and the newest stored timestamp advancing — recovery. Let it drain and confirm the backlog clears.

Do not clear the buffer to reset the pipeline: cleared records are samples that exist nowhere else and cannot be recreated.

Make the database prove an insert #

A valid connection proves login only. The database can accept the connection and refuse every write, so make it show the failure:

  • Check space for data and for the transaction log; either one exhausted stops inserts while logins keep succeeding.
  • Confirm the account the historian connects with still holds write grants on the history tables it writes to.
  • Read the server's own error log for the moment recording stopped, and look for blocking or failed transactions at that time.
  • Match each gateway-side write error to the named database operation before acting on it.

Insert-side faults usually announce themselves in the server's log first; one worked pattern is historian table creation failing on MySQL over ODBC. After any fix, the proof is the newest stored timestamp advancing and the queue draining — nothing else closes the case.

The decision for each finding #

  • Records appear once the probe tag runs on System: value timestamps stopped advancing at the source. Keep System for periodic recording, or fix the source timestamps where device time is required. Done.
  • No records, pending queue rising: an insert fault. Free space, restore grants, or relieve blocking in the database, leave the buffer intact, and let it drain.
  • No records, queue flat at zero: a generation fault. The tag's configured destination does not match the database you queried — reconcile the two and the missing rows are explained.
  • Fresh rows in the database with a blank trend: a retrieval fault. Correct the binding path, the time range, or the time-zone reading; the historian itself needs no repair.

Questions asked

Why did setting Max Time Between Records to 10 seconds not create any records?

That setting only caps the gap between stored samples; it does not generate a record when the sample is keyed to a value timestamp that has stopped advancing. With Timestamp Source on Value, history follows the clock attached to the incoming value, so a tag whose value timestamp never changes can store nothing while its live value and quality look perfect. Switch the probe tag to System and rerun the five-minute count.

Should I clear the Store and Forward queue to get history moving again?

No. Clearing the queue discards buffered samples permanently; those records exist nowhere else and cannot be regenerated once the buffer is emptied. Correct the condition blocking the inserts, then let the engine drain the backlog on its own. A rising queue is useful evidence while it exists.

How do I tell a recording fault from a display or query fault?

Query the history tables directly and read the newest stored timestamp. If fresh rows exist but the trend shows nothing, the write path is healthy and the fault is on the retrieval side: the binding tag path, the time range, or the time-zone interpretation. If the newest timestamp is stale in the database itself, it is a recording fault.

Which Timestamp Source should stay in place once the fault is fixed?

Keep System when the requirement is a periodic record against the gateway clock, which is what reporting and trending normally expect. Use Value only when the measurement time supplied by the source device is itself the required timestamp, and only after confirming those timestamps advance. The setting changes what the stored time means, so apply it tag by tag.

What does a brand-new tag failing to record tell me?

It points at the shared pipeline rather than the tag. A new tag inherits the same history destination and the same executing scan class as the failing ones, so it hits the same blocked stage. Spend the time on the destination, the queue and the database insert path instead of recreating tags.

Keep reading

  • Selection guide

    Choosing an edge data path for periodic records

    For independent periodic samples, Tag Historian with Edge Sync Services is the reliable path and buffers 35 days locally. For one atomic row per collection cycle, use MQTT Transmission records landing in MQTT Recorder. For true transaction groups, license a standard gateway for that node.

    Edge computing and IIoT

  • Troubleshooting

    Why an Easy Chart pen shows no historian data

    A live tag with an empty Easy Chart pen is a historian write-path fault, not a tag fault. Clear the SQL Server no count option first; if it is already off, remove the trigger or procedure statement that makes the update return a result set, then let the store-and-forward cache drain.

    Edge computing and IIoT

  • Troubleshooting

    Getting backfilled Sparkplug history through Ignition reference tags

    Your settings are right; order is the missing condition. Backfill reaches the reference tags only when Store Historical Events is OFF so backfilled samples drive the Engine tag, and only when the edge replays its backlog oldest-to-newest past metric timestamp validation. Out of order, disable metric timestamp validation and keep the replayed value out of live control reads.

    Edge computing and IIoT