IMD SolutionComputing LibraryShop main store

Troubleshooting

Why historian shows current time for backdated PLC data

Edge computing and IIoT Published 6 min read

Short answer

The historian is not replacing PLC timestamps with server time. The streamed write path enforces time order: a value that arrives out of order is restamped just after the last accepted value and flagged in quality detail, while backdated values that arrive in order keep their old dates — which is why clients show current time and History Blocks still show 2012. Disable Auto-Summary to stop the Replication service crashes, then move the affected tags to a non-streamed write path.

On this page
  1. The rule that produces both symptoms
  2. The arithmetic: the offset against one-second data
  3. Why Auto-Summary grows Replication memory
  4. The decision, case by case
  5. Confirm the path before changing anything
  6. Questions asked

AVEVA Historian is not normalizing your PLC timestamps to server time, and the 2012 and 2013 History Blocks are not stale leftovers. Both observations come from one documented rule: the streamed write path enforces time order. A value that arrives earlier than the last accepted value on its stream is stored 5 ms after that value and flagged as an overwritten timestamp in QualityDetail, while backdated values that arrive in increasing order keep their old dates. The Replication service failures are the downstream cost of the same data: with Auto-Summary enabled, service memory climbs until the service crashes. Disable Auto-Summary to stabilize the system now, and move the affected tags to a non-streamed write path for the durable fix.

The rule that produces both symptoms #

The historian's documented data model divides original data into streamed and non-streamed, each with its own storage API. Streamed data carries an order obligation: the client layer, HCAL, compares each incoming value with the last value accepted on that tag's stream. When a value's timestamp is not later than that anchor, HCAL stores it at the anchor plus the offset quoted above and sets a QualityDetail entry marking the timestamp as overwritten — 704 is the value reported for that flag, so confirm the number in your own installation before you script against it. Non-streamed data carries no order obligation: the timestamp you supply is the timestamp that is stored.

Two positions of the same stream produce your two symptoms:

  • A fresh start anchors wherever the first value lands. If HCAL begins with no prior value and the first arrival is stamped in 2013, it is accepted as-is, and every later PLC value that is later in PLC time passes the check. The archive fills with 2013-dated data, and block dates follow the timestamps actually stored, never the wall clock — the same mechanism behind why a historian creates history blocks dated in the future when a source clock runs ahead.
  • An advanced stream restamps everything older. However the stream reached current time — one corrected PLC, or one value stamped with server time by something in the path — the anchor now sits at today. Every later 2013-stamped value violates the order, and each is stored just past the previous one. The client shows current time; blocks from the earlier era keep 2012 and 2013.

The arithmetic: the offset against one-second data #

Take one tag as a worked example: the PLC clock reads 2013-06-14 07:15:00.000, the wall clock reads 2025-05-22 14:00:00.000, and the tag logs one value per second (1,000 ms).

After a fresh start:

  • Value 1 carries 2013-06-14 07:15:00.000. Nothing earlier exists on the stream, so it is accepted unchanged.
  • Value 2 carries 2013-06-14 07:15:01.000, which is 1,000 ms later than value 1 — in order, accepted unchanged.
  • After 3,600 values, the last accepted timestamp is 2013-06-14 08:15:00.000, because 3,600 samples at 1 s are 3,600 s, which is one hour. A block covering June 2013 now exists on a server whose clock says 2025.

Once the same stream has advanced to current time:

  • The last accepted value is 2025-05-22 14:00:00.000.
  • The next PLC value carries 2013-06-14 07:15:01.000, which is earlier than the anchor, so it is stored at 2025-05-22 14:00:00.005.
  • The following value carries 2013-06-14 07:15:02.000, earlier than 14:00:00.005, so it is stored at 2025-05-22 14:00:00.010.
  • The stored trend now advances by the order offset per sample while the source advances 1,000 ms: 1,000 ÷ 5 = 200, so the stored history runs 200 times slower than the plant.

Pull two adjacent stored values for an affected tag: spaced by that offset on a one-second tag, with the overwrite flag set, is the restamp confirmed. Treat those timestamps accordingly — any interval or rate calculation on restamped data is measuring steps of that size that never existed at the source.

Why Auto-Summary grows Replication memory #

The reported failure sequence is specific. With backdated blocks in the archive and live data landing at current time, enabling Auto-Summary made the Replication service's memory climb until it crashed repeatedly, and disabling Auto-Summary stabilized the system. The growth is a data-order problem, not a version problem — replication to a PI server has separate historian-to-PI replication version requirements, but a version mismatch shows up as failed or unsupported replication, not as climbing memory on a running service.

Disabling Auto-Summary is containment with a known price: data that is no longer summarized on the fly is summarized through the synchronization queue instead, so summaries finish later. If you touch the summary and replication configuration while planning the write-path fix, start from configuring tiered historian replication and summaries as the reference layout.

The decision, case by case #

  • You can reach the PLC clocks — a few units, or a maintenance round already planned: correct them. It is the only change that removes the cause, and no historian setting repairs a stale source time.
  • Around 700 PLCs and no clock access this quarter: disable Auto-Summary today. In the reported deployment that alone stopped the Replication service crashes. Leave it off until the affected tags arrive in order or leave the streamed path, because re-enabling it while 2013-stamped data still flows recreates the memory growth.
  • Durable fix without touching the PLCs: write the affected tags through a non-streamed path — the Historian SDK, T-SQL, or AppServer scripting built on the SDK. Time order is not enforced there, so a 2013 timestamp is stored as 2013, and blocks, clients and summaries agree again. Budget for slower summary completion on that data.
  • The tag rides an IDAS or AppServer channel: those channels were reported as hardcoded to streamed writes, so verify the channel's documented write mechanism before planning a switch. If it cannot change at runtime, route those tags through the SDK writer or correct the clocks on those units only.
  • Before scaling up: move a representative set — twenty tags spanning fast and slow logging — and check quality detail, block ranges and synchronization-queue progress across one full summary cycle before touching the remaining 680.

Confirm the path before changing anything #

  • Record three times for each affected tag: the PLC-facing timestamp (Object Viewer in the reported case), the time the historian client shows, and the date range of the block holding the data. One row per tag.
  • A uniform multi-hour shift on every tag points at time zones or server clocks; the restamp instead shows up as offset-size spacing between adjacent samples together with the overwrite flag.
  • Trace the tag through its channel or application to identify the actual write API. Do not infer streamed versus non-streamed from the symptoms alone — the same tag can show both behaviors at different stream positions.
  • Export the quality columns with the values, not just value and timestamp, so overwritten timestamps are visible in the record you hand to whoever owns the write path.
  • Watch Replication service memory for a full day with Auto-Summary disabled before calling the system stable.

Questions asked

Is the historian replacing PLC timestamps with server time?

No. Only values that break the streamed path's time order are restamped, a few milliseconds after the last accepted value, with the overwrite flagged in quality detail. The adjustment is not retroactive: values already stored keep the timestamp they were accepted with, and backdated values that arrive in order keep the PLC time.

Why do History Blocks show 2012 and 2013 while the client shows today?

A block's date range comes from the data inside it. The first value accepted after a fresh start of the client layer anchored that tag's stream in 2012 or 2013, and later in-order values kept those dates, so blocks for those years were created. An old block range is evidence those values were accepted with old timestamps, not corruption.

Will correcting the PLC clocks clean up what is already stored?

No. Correcting a clock only fixes future data; stored values keep the timestamp they were accepted with, and the blocks built around them keep their date ranges. The old data ages out on your retention schedule. Plan the correction anyway, because it is the only change that stops new backdated data from arriving.

Can an IDAS or AppServer channel be switched to non-streamed writes?

Not on the evidence here. Those channels were reported as hardcoded to streamed data, and whether a channel can change its write mechanism is a per-channel question with a documented answer. If it cannot switch at runtime, write the affected tags through the Historian SDK or T-SQL, or correct the clocks on those units.

Is the 5 ms adjustment applied per tag or per server?

Per tag. The order check compares each incoming value with the last accepted value on that tag's stream, so every tag carries its own anchor. That is why, on one server, tags can sit in different eras — some still storing 2013 dates, others restamped to current time — depending on where each stream's anchor landed.

Keep reading

  • Troubleshooting

    Why a historian creates history blocks dated in the future

    Future-dated history blocks mean the historian is receiving values whose origin timestamps are wrong, not that storage is failing: it files each value into the day block covering that value's own stamp, so an upstream layer four months ahead creates blocks four months ahead. Measure the offset, split the affected tags by source, and fix the layer that owns the timestamp.

    Edge computing and IIoT

  • 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

  • How-to

    Setting historian pruning and retention for Ignition tag history

    Prune tag history on the history provider, not with the transaction group's delete setting: in the Gateway's tag history configuration, enable data pruning and set a retention period in days. At 250 MB per day of growth, 30 days of retention holds about 7.5 GB and a full year about 91 GB. Deadband and Max Time Between Samples decide most of the daily rate, and QC records from transaction groups keep growing on a separate budget.

    Edge computing and IIoT