IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a historian creates history blocks dated in the future

Edge computing and IIoT Published 8 min read

Short answer

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.

On this page
  1. Why is my historian creating history blocks in the future?
  2. What does each symptom point to in the data path?
  3. How do I confirm the stored timestamps are actually future?
  4. Is the offset calendar months or a fixed number of days?
  5. Can a wrong time zone alone cause a four-month offset?
  6. Which clock checks do I run on every node?
  7. Can the PLC's clock be causing the future blocks?
  8. Should I delete the future-dated history blocks?
  9. Questions asked

History blocks dated four months ahead mean the historian is being handed values whose origin timestamps are already in the future. The historian does not file data by when it arrives; it places each value into the day-sized block covering that value's own timestamp, so an upstream layer four months ahead manufactures blocks four months ahead. Storage is not failing, and every platform clock can read correctly while the fault persists, because the stamp is decided upstream of the historian. Work the chain in order: confirm what is stored, measure the offset, then test each stamping point from the PLC RTC through the OPC server to the platform engine.

Why is my historian creating history blocks in the future? #

Because the historian files every value into the day-sized history block covering that value's own origin timestamp, and some layer upstream is handing it stamps roughly four months ahead; the blocks are correctly filed data with wrong times.

AVEVA Historian organizes its archive into history blocks, one per day, and the block a value lands in is chosen by the value's timestamp, not by arrival time. That is why the future blocks hold valid-looking process data: the readings are real, the times they carry are not. Query response degrades because the engine has to manage block ranges months beyond the current block. Every platform clock reading correct does not clear the chain, because a stamp can be assigned by the PLC, the OPC server, or the platform engine before the historian ever sees the value.

What does each symptom point to in the data path? #

Two findings decide the investigation: future blocks holding system tags such as %CPU and RAM from a node with no PLC, and recurrence after the blocks were deleted with the historian stopped.

Map each observation to the layer that can produce it before touching anything:

What you observe Layer it points to What it settles
Platform OS clocks all read correct Nothing by itself The stamp is assigned upstream of those clocks
A trace on the Application Object Server shows correct data, while the historian side shows a wrong Origin time Between the Application Object Server output and historian storage The source value is fine; the offset enters at the hand-off or in how the origin time is interpreted
A future block holds PLC-backed process tags PLC RTC, PLC time zone, or OPC server stamping Device-supplied VTQ time is in play
A future block holds %CPU and RAM tags from a platform hosting only a View App The platform engine or the layer handing data to the historian No PLC feeds this block; a PLC-only fix cannot clear it
Deleting the blocks with the historian stopped does not stop recurrence Upstream of storage The blocks are a symptom; the bad-stamp source is still active

List the future-dated blocks and note which tags and platforms feed each one. Finding two independent sources — PLC data and non-PLC system tags — in future blocks is the finding that governs every step below.

How do I confirm the stored timestamps are actually future? #

Query the archive directly for a window starting after the current time, using the historian's SQL extension rather than a trend client, because a client-side time-zone conversion can shift displayed times on its own.

Set the bounds to a window that begins just after the current moment — the example uses 2025-08-01 through 2026-02-01 — and adjust the view and retrieval mode to the ones your historian version exposes:

SELECT TOP 100 TagName, DateTime, Value, QualityDetail
FROM Runtime.dbo.History
WHERE wwRetrievalMode = 'Delta'
  AND DateTime >= '2025-08-01 00:00:00'
  AND DateTime <= '2026-02-01 00:00:00'
ORDER BY DateTime

Then work the result:

  1. Record every distinct TagName returned and group the tags by the platform or engine that owns them.
  2. Record the earliest and latest DateTime per tag; that range is the offset you will measure next.
  3. Run the same window on a tag you know is healthy; it must return nothing, which proves the query itself is not manufacturing future rows.

The archive stores its timestamps in UTC, so build your comparison window on the same basis your query tool submits and compare stored values only against other stored values.

Is the offset calendar months or a fixed number of days? #

Measure it: capture the stored DateTime for a value whose real generation time you know, subtract, and repeat on a second date, because four calendar months spans 120 to 123 days and the two behaviors name different faults.

Worked example with illustrative numbers, arithmetic shown:

  • A value generated at 2025-02-11 09:15:40 is stored with DateTime 2025-06-11 09:15:40. Days between: 11 Feb to 11 Mar is 28, then 31 to 11 Apr, 30 to 11 May, 31 to 11 Jun: 28 + 31 + 30 + 31 = 120 days, and the time of day matches, so the offset is 120 days exactly.
  • A value generated at 2025-07-02 10:00:00 is stored with DateTime 2025-11-02 10:00:00. Days between: 31 + 31 + 30 + 31 = 123 days, again with the time of day matching.
  • The day count grows from 120 to 123 while the clock time stays fixed, so the offset tracks calendar months. Look for a step that adds months to a date: a migration or import routine, a computed stamp, or a component doing month arithmetic. If both measurements return the same day count instead, a fixed interval is being added or a clock sits ahead by that many days, which points at clock state or a fixed-offset translation.

Two installations on different releases — a 2017-era platform and one on SP2023R2SP1 — reportedly saw the same four-month span, which is why this measurement matters more than the version number: it separates a systematic date calculation from drift.

Can a wrong time zone alone cause a four-month offset? #

No: a time-zone error that keeps the wall-clock time but changes the zone moves the derived UTC offset by whole hours, up to fourteen, never months, so four months is a date fault sitting on top of any zone fault.

The classic pattern is a node whose zone gets corrected without adjusting the clock, so the local time is now wrong by the difference between the old and new zone offsets and every derived UTC stamp shifts by that many hours. A node set to UTC+00 while it should be UTC+10, clock untouched, stamps ten hours ahead — 10 hours, not 120 days. Check the zones anyway, because an hours-scale error riding along distorts the day-count measurement above; just refuse any explanation of the months that stops at a zone setting.

Which clock checks do I run on every node? #

Run four checks on every node in the data path — each platform, the Application Object Server, the OPC server host, and the historian — and read the full date, not just the time of day.

Get-Date -Format o
Get-TimeZone
w32tm /query /status
w32tm /query /source

What each one exposes:

  • Get-Date -Format o prints the complete date with offset; a wrong month or year hides behind a correct time of day.
  • Get-TimeZone catches a correct wall-clock time in the wrong zone, which yields a wrong derived UTC offset.
  • w32tm /query /source names the sync source; Local CMOS Clock or a virtualization host instead of the domain or NTP source means the node's time is unmanaged.
  • w32tm /query /status shows the last successful sync; a node that has not synced for a long interval can have drifted or jumped.

Then compare Windows System log time-change events on the nodes feeding the affected tags against the date of the first future-dated value. A clock that once read ahead and was later corrected still wrote bad stamps while it was wrong, so a first bad value that lines up with a time-change event names that node as the source.

Can the PLC's clock be causing the future blocks? #

Only for the blocks fed by that PLC, and only if the PLC's time actually propagates: a factory-default RTC reading 1980 produces past-dated stamps, so it cannot explain a forward offset by itself.

In the reported case behind this pattern, M580 PLCs were suspected of sitting at their factory-default date with wrong PLC time zones, and both were corrected — right for data quality, but a default date decades in the past lands stamps in past blocks, never future ones. What decides whether a PLC clock can matter at all is who stamps the value:

  • Where the PLC and its driver chain propagate VTQ, the time comes from the source device, so the PLC RTC and zone own the stamp.
  • Where the OPC server stamps the value — OFS in this architecture — the time comes from the OPC server host, and the PLC clock is irrelevant to it.

Read the PLC RTC and zone through the PLC's own diagnostics, compare them to the OPC server host time, then check whether the item timestamp arriving at the Application Object Server tracks the PLC time or the server time. That comparison, tag by tag, tells you which clock you are actually fixing.

Should I delete the future-dated history blocks? #

Yes, once, after the stamping source is fixed, with the historian service stopped and a copy of the block files set aside first; deleting them repeatedly as they reappear fixes nothing, because the blocks are output, not cause.

One installation reported exactly that: the blocks were deleted with the historian stopped and the future blocks came back, which is the proof that the stamping source was still active. The removal uses the same service-stopped block-file handling that merging two historian servers' history blocks without tiering depends on. Treat the copy you set aside as the rollback: those blocks hold real measurements, only misfiled in time. After the source fix and the one-time removal, confirm that no new future-dated block appears before you close the incident.

Questions asked

How long should I watch for new future blocks after fixing the stamping source?

One full day is enough to prove the fix. A value stamped even a day ahead lands in a future block the moment it arrives, so a stamp four months out would have produced its block on the first bad value. If no new future-dated block appears across a full day and night of operation after the source fix and the one-time cleanup, the stamping layer is clean; if one appears, the source is still active.

Is the process data inside the future blocks lost when they are deleted?

Yes, deleting a block removes those stored values, which is why the block files are copied aside first. The readings are real measurements filed under wrong times, so before deleting, check whether the same window is covered by correctly stamped tags or an export. The copy then exists as the rollback rather than as data the historian can query.

Will changing the historian server's time zone correct the stored timestamps?

No. Changing the server's time zone after the fact does not rewrite timestamps already stored; the archive keeps them on the basis they were written with. Correcting a zone changes how new values are converted going forward, which is exactly why the stamping source, not the historian server's zone setting, is where this fault gets fixed.

Which layer do I suspect first when both PLC tags and system tags are affected?

The first layer the two paths share: the platform engine and its hand-off to the historian. A PLC clock defect cannot stamp %CPU and RAM tags on a node that hosts only a View App, so when both populations are wrong, the common path from the application server onward owns at least part of the fault. Fix the PLC clock for its own tags, but expect the shared layer to hold the rest.

Keep reading

  • How-to

    Merge two historian servers' history blocks without tiering

    Yes — consolidate the two archives on one server by copying every history block that exists on only one server into the other's archive, repairing internal TagID lookup with the source taginfo.dat where names match but history stays missing, and moving any day both servers cover through CSV export and import. The destination should run the same historian release as the source or newer, 2017 or later.

    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

  • How-to

    Writing timestamped history back into a SCADA server

    Write timestamped results into the SCADA historic database through the vendor's .NET client API, under a dedicated account that holds the right to edit history, running as a daily scheduled task or a file-watching service. Test one ODBC insert under that account first: if the historic table still refuses writes, ODBC is read-only on your build and the API is the route.

    Edge computing and IIoT