Explainer
When store-and-forward data counts as stored in the historian
Short answer
InStoreForward = FALSE only clears the buffering indication. The documented transfer check is an empty Store-and-Forward folder, no .dat files, after the connection returns, with the loss flag never TRUE; durable commit into HistoryBlocks is proven separately by querying a known tag across the outage window.
On this page
- What does InStoreForward = FALSE actually tell you?
- How do you verify that buffered data reached the historian?
- Does an empty folder prove the data is in HistoryBlocks?
- Which status attribute answers which question?
- How do you read the flags on redundant historians?
- What triggers the data-loss and problem flags?
- Which attributes are obsolete or have no effect?
- How should the operator display present store-and-forward?
- Questions asked
InStoreForward = FALSE clears the buffering indication and nothing more. The completion check the documentation supports is the AppEngine's Store-and-Forward folder: when the historian becomes available, the engine forwards the stored data at low priority, and when no .dat files remain the buffered data has been transferred. Whether that transfer is durable storage in HistoryBlocks is a separate question the attribute set does not answer, so it is verified with a historian-side query across the outage window. Here is the full attribute set, the redundant-pair mask bits, the loss flags, and the checks that keep an operator display honest.
What does InStoreForward = FALSE actually tell you? #
InStoreForward = FALSE tells you only that buffering has stopped: the attribute is TRUE while the engine's HCAL buffers data for forwarding, and in a redundant pair it stays TRUE while either historian is still buffering, so FALSE clears an indication rather than certifying storage.
HCAL is the service that maintains the connection between the AppEngine and the historian, and the Engine.Historian attributes report what HCAL sees. InStoreForward is TRUE while HCAL buffers data for forwarding; in a redundant pair the combined flag is TRUE if either historian is still in store-and-forward mode. A FALSE value therefore reports a cleared mode indication: it does not identify which historian received the records or where those records sit in the archive's write path.
Keep three states separate on any display: the connection (ConnectState), the buffering mode (InStoreForward), and confirmed loss (StoreFwdDataLost). A connection can be good while nothing is being historized, and none of these flags is a per-record acknowledgment.
How do you verify that buffered data reached the historian? #
Watch the Store-and-Forward folder on the AppEngine: when the historian becomes available the engine forwards the stored data at low priority, and an empty folder with no .dat files left is the practical evidence that the buffered data was transferred.
The transfer starts as soon as the historian is reachable and runs at low priority so it does not crowd out live historizing, and its duration scales with the stored volume: a five-minute outage and a five-hour outage will not clear at the same rate. While it runs, watch how many .dat files remain in the Store-and-Forward folder and Engine.Historian.StoreForwardSpaceAvailable, which reports the free buffer space in MB, until both settle.
One failure mode to check every time: data the historian will not accept can collect in a bad.dat folder inside the Store-and-Forward folder, and that content has to be pushed to the historian manually. Any bad.dat presence means the recovery is not finished, no matter what the flags say.
Does an empty folder prove the data is in HistoryBlocks? #
No: the attribute definitions do not say whether file deletion follows receipt into historian memory or the durable write into HistoryBlocks, so an empty folder proves the engine handed the data over, an acknowledged transfer, not that it is committed to disk.
The reference does not document what triggers deletion of the forwarded files, whether it is the AppEngine declaring the last package sent or the historian confirming storage, so an engineer who must certify the archive cannot stop at the folder. The historian accepting data into memory and committing it to disk are not the same event, and a historian restart in between is exactly the gap the attribute set does not close.
The acceptance check is a historian-side query, run after the folder is empty, for a known tag across the outage window with its expected values and timestamps. If the values return, the data is in the archive. An empty result does not always mean missing data: a bad quality update can mask stored values, the failure mode covered in why a bad quality update hides Historian values.
Worked example (illustrative numbers). A network fault isolates the AppEngine from the historian for 90 minutes. Assume 1,500 tags storing on change, averaging one stored value per tag every 30 s through the disturbance. Expected buffered values: 1,500 × (90 min × 60 s ÷ 30 s) = 1,500 × 180 = 270,000. The connection returns, the folder drains to zero .dat files, and a query across the 90-minute window returns 269,100 values.
Missing: 270,000 − 269,100 = 900. Coverage: 269,100 ÷ 270,000 = 0.997, or 99.7 percent. Decision: with StoreFwdDataLost never TRUE and no bad.dat content, spot-check three fast-cycling tags across the window. If those are complete, the 900 are steady tags that produced no changes, because store-on-change logging writes nothing while a value holds still. If a fast tag shows gaps, treat it as a transfer fault and investigate before signing off the recovery.
Which status attribute answers which question? #
Give each attribute one job: ConnectState answers "is the path up", InStoreForward answers "is the engine buffering", StoreForwardProblem answers "can HCAL store while buffering", StoreFwdDataLost answers "was data lost", and StoreForwardSpaceAvailable answers "how much buffer room is left in MB".
| Attribute | What it reports | How to treat it |
|---|---|---|
| Engine.Historian.ConnectState | Physical connection between HCAL and the historian; TRUE while communication works, historizing or not | Connection indicator only |
| Engine.Historian.InStoreForward | TRUE while the engine buffers for forwarding; TRUE if either historian in a redundant pair buffers | Buffering mode, not a storage certificate |
| Engine.Historian.StoreForwardProblem | TRUE when HCAL on the active engine cannot store data while in store-and-forward mode | Fault condition: check space and the folder |
| Engine.Historian.StoreFwdDataLost | TRUE when store-and-forward is active, the deletion threshold is exceeded, and data has been lost | Confirmed loss; latched through recovery |
| Engine.Historian.StoreForwardSpaceAvailable | Free space for the engine's HCAL, in MB | Capacity diagnostic, not a queue count |
| Engine.Historian.ConnectionPartner | Name of the partner historian; empty string when none is configured | Tells you whether the mask's second bit can set |
| Store-and-Forward folder | Buffered .dat files | Empty after recovery means transfer complete |
The runtime reference spells the loss attribute StoreFwdDataLost, while ObjectViewer listings can show StoreForwardDataLost; confirm the name the deployed system exposes before binding a display, and do not treat the two spellings as interchangeable.
How do you read the flags on redundant historians? #
Read the masks, not the combined booleans: in Engine.Historian.ConnectStateMask the lowest-order bit is the primary historian connection and the second bit is the partner, and Engine.Historian.InStoreForwardMask uses the same two bit positions for buffering state.
With no partner configured the second bit always reads zero, and Engine.Historian.ConnectionPartner returns an empty string. The combined Engine.Historian.ConnectState is TRUE when at least one connection is good, so it can hold TRUE with one historian down; the combined InStoreForward is TRUE if either side is buffering. Anywhere an operator has to say which historian has the problem, expose the masks or the per-side states instead of the combined booleans. The same per-side visibility matters when you are running redundant InTouch historians with parallel tag logging, because a healthy combined flag there can likewise hide a silent partner.
What triggers the data-loss and problem flags? #
StoreFwdDataLost goes TRUE only when three conditions line up: store-and-forward is active, the configured deletion threshold has been exceeded, and history data has actually been lost, and it holds TRUE until the connection is re-established and store-and-forward ends.
StoreForwardProblem is the earlier warning: TRUE means HCAL on the active engine cannot store data while buffering, so check the AppEngine's disk space and the Store-and-Forward folder before calling the recovery normal. The loss flag is the confirmed outcome: exceeding the configured deletion threshold during a long outage, with store-and-forward still active, is the documented path to TRUE, and it latches through the recovery.
StoreForwardDeletionThreshold and StoreForwardMinDuration are configuration items, and the runtime attribute reference does not document their units or their settings location. Read the effective values from the deployed configuration before telling an operator how much outage the buffer absorbs, and do not convert either setting into a promised recovery time.
Which attributes are obsolete or have no effect? #
Stop using Engine.Historian.BufferCount, ForwardingChunkSize, ForwardingDelay and ProcessInterval: the runtime reference marks all four obsolete and points to BufferSize in place of BufferCount, and Engine.Historian.ConnectStateCmd is documented as having no effect on the engine-to-historian connection.
A graphic or script that still reads BufferCount will not fail loudly, which is the danger: the attribute has no documented meaning going forward, so a troubleshooting rule built on it proves nothing. Audit existing displays for the obsolete names and replace BufferCount reads with BufferSize; drop ConnectStateCmd from any sequence that assumed it could force the connection.
How should the operator display present store-and-forward? #
Show four separate states: connection, buffering, confirmed loss, and free space in MB, and never a single green historian lamp that implies buffered data is both transferred and durably committed; on redundant pairs, expose the per-side mask bits.
Label the loss indication as latched: it stays TRUE through the recovery until the connection is restored and buffering has ended, and an operator who sees a red flag on a healthy-looking system needs that sentence on the screen text. Use "buffer transferred" for the empty-folder condition and reserve "stored" for the query-verified condition. The escalation order that matches the flags: StoreForwardProblem means check space, bad.dat content means a manual push is waiting, StoreFwdDataLost means records are gone and the outage report needs the number.
Sign-off rule: empty Store-and-Forward folder, StoreForwardSpaceAvailable stable, StoreFwdDataLost never TRUE, and a historian query across the outage window that returns the expected values. Anything less is a transfer in progress, not a stored result.
Questions asked
How long does the Store-and-Forward folder take to empty once the historian is back?
No attribute gives an ETA. Forwarding starts as soon as the historian is reachable, runs at low priority, and scales with the stored volume, so the completion signal is a pair of readings, not a timer: whether .dat files remain in the folder and StoreForwardSpaceAvailable in MB, watched until both settle.
What is HCAL, and does it need separate configuration?
HCAL handles the engine-to-historian link that the Engine.Historian attributes reflect. You do not configure it on its own for store-and-forward; its state surfaces through attributes such as ConnectState and InStoreForward, which is why those flags describe the connection path rather than the archive itself.
Can data be lost even if the folder empties afterward?
Yes. If an outage runs long enough to exceed the configured deletion threshold while store-and-forward is active, records are lost and StoreFwdDataLost goes TRUE, latching until the connection is re-established and buffering ends. The folder emptying afterwards does not bring those records back, which is why the loss flag belongs on the operator display.
Do the mask attributes matter on a single-historian system?
They read correctly but add nothing. With no partner configured, the second bit of ConnectStateMask and InStoreForwardMask is always zero and ConnectionPartner returns an empty string, so the combined booleans are unambiguous. The masks earn their place the moment a partner historian is configured.
Where are StoreForwardDeletionThreshold and StoreForwardMinDuration set?
Both appear as configuration items rather than readable status, and the runtime attribute reference does not document their units or settings location. Read the effective values from the deployed configuration before quoting how much outage the buffer can absorb, and do not derive a recovery-time promise from either of them.