Troubleshooting
Why historian data goes missing and reappears the next day
Short answer
Data that reappears by the next morning was never lost: it reached the affected Historian late and was committed to history with its original timestamps. Anchor the gap start to the logger's block-creation entry, clear the source side with the second Historian on the same OI Server, then set the registry value documented in AVEVA support article 000041658 on the affected server and verify across two block switches.
On this page
- What a gap that fills in later actually means
- Work the checks in this order
- Use the block-creation log entry as your anchor
- Example: matching a 12:01 PM gap to its block-creation entry
- Clear the OI Server with the second historian
- Set the documented registry value on Server 1
- If the loss comes back after the fix
- Test the storage path when gaps still track block switches
- Verify the fix across two block switches
- Questions asked
Data that reappears by the next morning was never lost. When one Historian shows a long flat gap that fills in a day later while a second Historian fed by the same OI Server stays complete, the values reached the first server late: they were committed to history afterwards, stamped with their original timestamps, and the delay lives on that server's history-block storage path. AVEVA documents the fix as a single registry value applied to the affected Historian server. Work the checks below in order; each rules out one layer before you touch the next, and each carries a pass condition so you know which layer failed.
What a gap that fills in later actually means #
Two faults look identical in a trend: values that were never stored, and values that were stored but not served until later. A gap that self-heals is the second one. The values were produced at the source with correct timestamps, sat in a buffer or a late-commit write path, and reached history afterwards, which is why the trend only looks complete after the fact. The stored timestamp records when a value was produced, not when the server received it, so late data slots back into its proper place.
Three neighbours look similar and need different fixes. Values that are present but sit at the wrong time of day are a clock or UTC offset problem, covered in Historian shows a real value hours off: check the UTC offset. A gap that opens when the Historian restarts follows the restart path in Fix AVEVA Historian overnight data gaps after restart. A gap that never fills in and logs nothing is the silent case in Fix historian silent data gaps with a registry value.
Work the checks in this order #
- Confirm the healthy server. Trend the same tag on both Historians across the gap window. A complete second server clears the source, the OI Server and the field network in one stroke.
- Find the gap's first log entry. On the affected server, read the logger from the gap start and note whether it is a block-creation message.
- Silence-check the OI Server. Its logger should show nothing in the window; a fault logged there moves the investigation upstream.
- Apply the documented registry value. Set it on the affected Historian server from the vendor's support article, then restart that server's Historian services in the article's order.
- Re-test against block switches. If gaps still start when a new history block is created, test the storage path on the affected server.
- Verify end to end. Watch two consecutive block switches with tags mirrored on both servers before you call the fault closed.
Use the block-creation log entry as your anchor #
AVEVA Historian stores history in blocks, repositories that exist outside the SQL Server database files, and switches to a new block on schedule. Each switch writes an informational logger entry like this one from the reported case:
Created new history block (F:\Historian\Data\Circular\A251127_001) [Server1; HistoryBlockMetadataServer.cpp; 316]
The entry is not an error. It is the timestamp anchor for this diagnosis: the moment a block switch happens is the moment the affected server's real-time commits stalled. If the gap starts in the same minute as one of these entries, and only on the server that shows the gap, the fault sits in that server's block creation or metadata path. The leading digits of the block name read like a year-month-day date code; confirm that against the block folder listing before you lean on it.
Example: matching a 12:01 PM gap to its block-creation entry #
Inputs, all from the reported case: gap start on the affected server at 12:01 PM; all missing values present again by 8:35 AM the next morning; a block-creation logger entry on that same server at the gap start; the second Historian complete over the same window on the same tag.
Rule in words: the window's length is the elapsed time from gap start to recovery, crossing midnight once. The anchor holds when the gap start falls in the same minute as a block-creation entry on the affected server only. A gap that starts minutes after the block event, or on both servers at once, points somewhere else.
Arithmetic: from 12:01 PM to midnight is 11 h 59 min; from midnight to 8:35 AM is 8 h 35 min; together 11 h 59 min + 8 h 35 min = 19 h 94 min = 20 h 34 min. In minutes that is 20 × 60 + 34 = 1234 min, and 1234 min ÷ 1440 min in a day ≈ 0.86, so about 86% of the day's history was unavailable in real time.
Result: a 1234-minute gap, 20 h 34 min long, whose start minute coincides with a block-creation entry on Server 1 while Server 2 covers the identical window.
Decision: anchor confirmed. Apply the registry setting documented in AVEVA support article 000041658 to Server 1, and leave the OI Server alone: its logger was silent across the whole window and the second server's completeness already clears it.
Clear the OI Server with the second historian #
Two Historians fed from one OI Server give you two independent delivery paths, each with its own buffering, which is what makes this diagnosis possible. Prove the source side before editing anything:
- Tag quality through the window on the healthy server: good quality, continuous timestamps.
- Data-source connection state in both historians' loggers and management console at the gap start: no disconnect or buffering entries.
- Buffer activity on the collecting node for the affected server's path: it grew at the gap start and drained when the values finally appeared.
- Clock alignment across the OI Server node and both Historians: one time source, no step changes.
Buffer growth on one delivery path with none on the other places the delay downstream of the OI Server and specific to the affected Historian. In the reported case the OI Server logged nothing at all in the window and the healthy server never blinked, so the search stays on Server 1.
Set the documented registry value on Server 1 #
AVEVA lists this behaviour as a known issue with a one-value fix; support article 000041658 carries it for Historian 2023 R2. Take the exact key path, value name, data type and allowed value from that article for your build, never from memory or from another version, because a wrong registry view or type looks identical to not setting the value at all.
- Export the parent registry key on Server 1 as a backup before editing, and pick a maintenance window: the service you are restarting is the one serving real-time history.
- Record the key path, value name and data type from the article for your exact build and service pack.
- Confirm which registry view the Historian process reads; a 32-bit process on 64-bit Windows sees a redirected location, and editing the wrong one changes nothing.
- Set the value on Server 1, not on the OI Server node, unless the article directs otherwise.
- Restart the Historian services in the order the article specifies; registry values are read at service start.
- Re-read the value after the restart and check the logger for a clean startup with no storage or configuration warnings.
If the loss comes back after the fix #
A recurrence means the value never landed where the process reads it, or the fault was never only the registry value. Work the table top to bottom, cheapest test first:
| What you see | How to test | Correction |
|---|---|---|
| Gap gone, then back days later | Compare the Historian service start time with the registry edit time | Restart the services and re-test |
| Gap unchanged from the start | Search both registry views; confirm which server you edited | Set the value where the Historian process actually reads it |
| Value set, correct view, gap persists | Compare the value's data type and number base (decimal vs hexadecimal) with the article | Correct the value and restart |
| Gaps still start with block-creation entries | Line up two gap starts with the logger's block-creation timestamps | Move to the storage-path checks below |
| Gap start matches no block event | Pull buffer, network and service logs from both servers around the gap start | Open a support case with logs from both historians attached |
The fourth row is the fork that decides the rest of the work: block-aligned gaps on Server 1 only keep pointing at that server's storage path; anything else belongs to AVEVA support with both servers' logs attached.
Test the storage path when gaps still track block switches #
The circular data path creates a new block on schedule, and a stall in file creation, metadata update or folder scanning delays real-time commits, a delay the client renders as your gap. On Server 1:
- Match at least two observed gap starts against block-creation entries, minute for minute.
- Read the Windows event logs around those times for disk, volume or filter-driver events on the history volume.
- Check whether antivirus or backup software scans the Historian data folders in real time, and exclude those folders per the vendor's documented exclusion list.
- Confirm the history volume is local or block-level storage with space in hand; variable-latency network shares are the wrong home for history blocks.
- Compare the two servers' storage configuration, volume type, block schedule and retention, and name where Server 1 differs from the healthy one.
Then watch the next block-creation entry: the trend must stay continuous through it. One pass proves nothing; two do.
Verify the fix across two block switches #
Verification must cross the failure mode itself, not just the restart moment:
- Pick three tags that update at different rates and are stored on both Historians.
- Note the next block-creation entry on Server 1 from the logger.
- At that moment, open live trends of the three tags side by side and confirm Server 1 keeps writing through the switch with no flat segment.
- Compare values timestamp for timestamp against Server 2.
- Leave the trends running across the overnight window that previously failed and check in the morning that the history is already there, not arriving later.
- Confirm a known tag, value and timestamp read back identically from both servers, and that the buffer for Server 1's delivery path drains within seconds instead of accumulating.
Decision: two consecutive clean block switches, matching values on both servers and an empty buffer close the fault. Record the registry value in Server 1's build notes so a rebuild or migration does not silently drop it.
Questions asked
How do I tell a late-commit gap from a clock offset problem?
Watch what happens when the data comes back. A late-commit gap closes: the recovered values slot into their original timestamps and the trend becomes continuous and correctly ordered in the past. A clock offset leaves values present but displaced, so the flat segment never fills and a matching band of data sits hours early or late. Note which one you have before changing any registry value.
How long before the missing data comes back?
There is no fixed delay. In the reported case every value was present again by the next morning, but the reappearance point is set by when the pending writes finally commit, often at a later block event or buffer drain, not by a schedule. Treat the reappearance time itself as evidence and line it up against the logger entries and buffer activity for the same window.
Should monitoring stay on the healthy server while the other is repaired?
Yes. The healthy server is your proof that the source and delivery are intact, so keep real-time displays and alarms served from it through the repair. Fail monitoring back only after the repaired server has passed two consecutive block switches and a known tag, value and timestamp read back identically from both historians.
What should I capture before opening a support case?
Collect in one pass: logger exports from both historians covering at least two gap windows, the block-creation entries with their timestamps, the OI Server logger for the same windows, a registry export of the key area taken before any edit, and any disk or volume events on the affected server at the gap starts. State the exact build and service pack of both servers.
Does a patch or upgrade remove the need for the registry value?
Check the readme published for your exact build and service pack; it lists the resolved and known issues for that release. If your symptom appears among the resolved issues, plan the patch, then re-verify the registry value after the upgrade and confirm two clean block switches again before closing the fault.