Troubleshooting
OPC HDA overflow records versus status -109 in PI archive backfills
Short answer
An overflow record means the PI archive chained a new record because the point's primary record was full; status -109 means a write hit a timestamp that already holds an event under NOREPLACE. Neither proves the first OPC HDA backfill pass missed data. Compare event sets for one point over one fixed interval instead.
On this page
- What each message actually says
- Steps to settle whether the first pass was complete
- Reading the overflow line for point 226 in a 2006-to-present recovery
- Why a second pass can legitimately return more history
- What status -109 means for your stored data
- When a trend changes after a rerun
- The decision for each case
- Questions asked
Neither message proves the first pass missed data. An "Inserting overflow record" line means the archive record for that point and time range was already full, so the archive chained a new record to hold incoming events — a storage allocation, not a recovery result. A status -109 means a write was rejected because an event already occupies that timestamp, which is exactly what a NOREPLACE interface does when a rerun resubmits existing history. The decisive check is the event set: for one point over one fixed interval, compare what the source historian returns with what the PI Data Archive stores. Everything else in the log is context, not verdict.
What each message actually says #
The overflow line comes from the archive manager when incoming events land on a full record. Every point in the point database has one primary record in every archive file; once that record fills, further events for the same time range go into a chained overflow record. During a recovery of 2006-to-present history this happens constantly, and vendor documentation treats it as normal operation, not an error.
The failure line names a rejected write. It reads PIarcmgr::addevent failed, mode: 0 ptid: %number% recid: %number% status: [-109] Value at This Time Already Exists, followed by the event time and value. The archive already held an event at that timestamp and, with the interface running NOREPLACE, refused to replace it. This is why spot checks across two runs show no visible duplicates: the rerun's collisions are rejected, not stored twice.
A backfill writes into historical records that audits and compliance reports may rely on, so confirm a point belongs to your interface before tracing or altering anything around it.
Steps to settle whether the first pass was complete #
- Resolve the point identifier in each message to its PI point, and confirm that point belongs to the OPC HDA interface collecting the backfill. A shared point source groups points; it does not prove which interface instance submitted a given event, and a point outside the assigned series has some other writer.
- Pick one affected point and one bounded interval inside one recovery batch. Record the literal start and end timestamps and use them unchanged for both passes.
- Read the source historian's recorded events for that interval, including timestamps, values and quality where available.
- Read the stored events in the PI archive for the same interval.
- Compare the two sets. Identical sets mean the first pass was complete and the overflow messages were storage allocation. If the source returns events the archive lacks, trace individual events through the interface: enable interface debugging with
/db=64and/dt=<tagname>, then correlate the sent and skipped values with the PI server logs. - Separate the log-entry time from the historical event time in every message. The first says when the write was processed; the second says where the event belongs in history. This is the same distinction behind why a PI value timestamp is not a receipt time.
- Run
piartool -OOOon the PI server. It lists points that have received out-of-order events; if it lists essentially every point on the server, that describes server-wide out-of-order traffic, not a fault in one backfill batch.
Reading the overflow line for point 226 in a 2006-to-present recovery #
Inputs, from the reported collection: one line the archive manager logged during the second pass of a backfill covering 2006 to present for more than 3,500 points — Inserting overflow record ... point: 226 ... record events: 100, overflow count: 99. Point 226 is served by one of four OPC HDA interface instances, each running a recovery series advanced about three months per batch.
The rule, in words: each point has one primary record in every archive file. When incoming events fill it, the archive chains an overflow record to hold the rest. The line reports the count of events in the record being extended and the number of overflow records already chained behind it.
The arithmetic: 1 primary record plus 99 overflow records gives 100 records in the chain for this point segment; at the reported 100 events per full record, storage for point 226 in that archive range has grown to roughly 100 × 100 = 10,000 event slots.
The result: the 99 counts storage records, not events. It is not the number of missed source events, not a completion percentage, and not proof that 99 events were recovered.
The decision: while writes are being accepted, this line is routine storage allocation, so keep the batches running. The trigger to investigate is not the overflow count; it is a trend result that changes after a rerun, or a -109 whose incoming value differs from the stored value. When either appears, run the event-set comparison above for one fixed batch interval.
Why a second pass can legitimately return more history #
A recovery whose end time is * uses the current time at execution. Each rerun therefore requests a later endpoint, and events that arrived between the two runs come back as new history. That is the collection working, not the first pass failing.
Archives on the source historian that came online between the passes increase the history a later request can return. Compare source archive availability on the Exaquantum side before treating the extra data as newly recovered by the rerun.
Keep the timestamp configuration identical across the interface instances sharing the point source. If one instance stamps with source timestamps and another with PI server timestamps, the same source event can land at two PI timestamps and produce duplicate-looking writes.
A source historian reboot was observed during the reported collection. Treat it as a cause only if the gap in returned events matches the reboot window; check the source's operating and archive-availability records for that interval before assigning the reboot as the reason.
What status -109 means for your stored data #
| Comparison at the contested timestamp | What it means | What to do |
|---|---|---|
| Incoming value and stored value match | The rerun submitted an event already collected. | Count it as an occupied timestamp, not a newly recovered event. |
| Incoming and stored values differ | The timestamp is occupied, but the stored value is not what the source now returns. | Compare source revisions and decide the correction policy before touching write behavior. |
| No event before the rerun, one after | The rerun added history at that timestamp. | Trace why the first pass left it empty. |
| Similar values at different timestamps | A timestamp collision check will not link them. | Compare source event times and the timestamp configuration. |
Keep the mode: 0 field of the failure line in the diagnostic record, but decide what a rerun will do from the interface's configured write mode, which is NOREPLACE in this installation. Changing away from NOREPLACE is not a diagnostic shortcut: it changes how existing historical values are treated on a historian whose past values may already serve reports and audits.
When a trend changes after a rerun #
A refreshed trend can fetch a different result set without any stored event having changed; display retrieval is not proof of a storage change. Read the recorded events over the same fixed interval before and after the rerun and compare the sets — the same discipline as diagnosing slow historian trends by separating events from samples.
If stored events really did change at an occupied timestamp, the write replaced rather than rejected, so check which write mode the interface actually ran. A buffer trace such as pibufss -trace <ptid> only applies where the buffer subsystem carries the writes; with four interface instances sharing one point source on consecutive batches it is unavailable until collection finishes, so use the interface debugging flags from the steps above.
The decision for each case #
- Overflow record lines only, with writes being accepted: routine storage allocation. Keep the batches running and judge completeness by the fixed-interval event comparison, never by the log.
- Status -109 with matching incoming and stored values: an occupied timestamp that was already collected. No action; rerun collisions under NOREPLACE are expected.
- Status -109 with a different incoming value: a correction policy decision. Compare source revisions before changing any write mode.
- The source returns more on the second pass because the endpoint is
*or new source archives came online: expected; not a first-pass fault. - The source returns events the archive lacks: a real gap. Trace the events through the interface with debugging flags and correct the collection, batch by batch.
Questions asked
How do I confirm the point in an archive message belongs to my OPC HDA interface?
Resolve the point identifier in the message to its PI point, then read that point's configured point source and interface instance mapping. A shared point source only groups points together; it does not show which instance submitted a given event. If the point sits outside the series your backfill instances cover, another writer produced it and the message belongs to a separate investigation.
Why can I not use the buffer subsystem trace during this backfill?
The trace only works where the buffer subsystem carries the writes to the PI server. In this setup four OPC HDA interface instances share one point source and run consecutive recovery batches, so buffering cannot be used until the history collection finishes. Trace individual events with interface debugging on the interface machine instead, then correlate those logs with the PI server logs.
What does it mean when the out-of-order tool lists every point?
The tool lists every point that has received out-of-order events. A server-wide list means out-of-order traffic touched essentially all points, which is common when several writers and recovery streams are active; it does not single out your backfill as faulty. Judge the backfill by the fixed-interval event comparison, not by the length of that list.