Troubleshooting
Historian not logging after re-enable in SMC
Short answer
After Historian is shut down and re-enabled through SMC Historian Management, a publishing AppEngine can stay in store-and-forward mode: the status window shows a very low data rate while history only lands in the buffer path. Check the engine's InStoreForward attribute in Object Viewer, then recover the engine with an off-scan/on-scan cycle or a stop and start in Platform Manager instead of rebooting the server.
On this page
- Why does the data rate stay low after you re-enable Historian in SMC?
- How do you check whether the engine is stuck in store-and-forward?
- Why does the engine show connected but keep buffering?
- How do you recover the engine without rebooting the server?
- How long should the buffer take to drain once delivery resumes?
- How do you confirm history is really stored again?
- What if it sticks again after the next shutdown and re-enable?
- Questions asked
After you shut Historian down and re-enable it through SMC, a very low data rate with history landing only in the buffer path means the publishing AppEngine never left store-and-forward mode. You do not need the server restart that clears it today: read the engine's "EngineName".Engine.Historian.InStoreForward attribute in Object Viewer, then recover the engine itself with an off-scan/on-scan cycle or a stop and start in Platform Manager. This walkthrough covers the check, the recovery ladder and the proof that history is stored again, written around the System Platform 2021 and Historian 2021 generation where the symptom was reported.
Why does the data rate stay low after you re-enable Historian in SMC? #
Because the publishing AppEngine stayed in store-and-forward mode: it kept writing history to the local buffer path instead of to the recovered Historian, so the status window reports only the small direct rate it still receives.
Store-and-forward is the documented response when a data source cannot communicate with the Historian: the source holds its samples locally and forwards them once the path returns. That forwarding is documented to run at low priority, so even a healthy recovery trails the live logging rate. The fault in this scenario is that the engine never leaves the state at all.
The disable came through the "shutdown and disable historian" action you reach by right-clicking Status in SMC's Historian Management, the window you open for a tag rename. After the re-enable, the receiving Historian is up, the engine keeps buffering, and the status window counts only what arrives. That window describes the receiving system, not the publishing engine's state, which is why the next diagnostic lives on the engine.
How do you check whether the engine is stuck in store-and-forward? #
Open Object Viewer on the affected platform and read the "EngineName".Engine.Historian.InStoreForward attribute on the publishing engine, substituting your actual engine name: true means the engine is still buffering rather than publishing.
Work through these readings before you change anything:
- Browse Object Viewer to the AppEngine that publishes the affected tags.
- Read
InStoreForward: true means store-and-forward is active on that engine. - Read the same engine's
Historian.ConnectionStatedisplay. - Record the buffer path's current size or last-write times, plus the data rate in Historian Management, as your before picture.
| What you read | What it means | What you do next |
|---|---|---|
InStoreForward true |
The engine holds history in its buffer instead of publishing | Run the recovery ladder below |
InStoreForward true with Historian.ConnectionState true |
Connected, but delivery has not resumed | Recovery ladder; the connected flag is not acceptance |
InStoreForward false, buffer shrinking |
Normal backlog recovery at low priority | Let it drain, then verify stored timestamps |
InStoreForward false, buffer flat, some tags empty |
Delivery is normal; the problem is tag-specific | Check that tag's historization definition and query references |
Why does the engine show connected but keep buffering? #
Because connection state and publishing state are separate indicators: Historian.ConnectionState = true only reports that the engine sees the Historian, while InStoreForward true says buffered history is not moving, and both can be true at once.
Engines in this failure have been reported displaying Historian.ConnectionState = true while still in store-and-forward, which is what makes the fault look contradictory on a status screen. The two attributes answer different questions, reachability and delivery, so neither substitutes for the other. The acceptance test for recovery is stored records and a shrinking buffer, never the connected flag alone.
How do you recover the engine without rebooting the server? #
Cycle the engine in SMC/Platform Manager: first take the AppEngine off scan and on scan again, and if the store-and-forward state does not clear, stop the engine and start it, which resets the publishing state without touching the rest of the server.
- Confirm the receiving side first: Historian shows enabled and healthy in Historian Management, so you are not cycling an engine against a historian that is still down.
- Take the AppEngine off scan, then on scan again, then re-read the attribute.
- If it is still true, stop the engine and start it again, then re-read.
- Keep the full server restart as the last resort; it clears this state only as a side effect of restarting every engine and service on the box.
One caution: an engine that is off scan or stopped does not execute the application objects it hosts, so agree the interruption with operations before step 2. Field reports describe the off-scan/on-scan cycle alone clearing the state in some installations, with the stop and start covering the rest, and neither touches the receiving Historian.
How long should the buffer take to drain once delivery resumes? #
For a 30-minute disable window across 2,000 tags storing one sample every 10 seconds each, the buffer holds about 360,000 samples, and at an illustrative 500 samples per second of forwarding that backlog clears in roughly 12 minutes.
Those figures are a worked example with assumed inputs, not specifications; the method is what transfers to your site:
- Backlog: 2,000 tags × (1,800 s ÷ 10 s per sample) = 2,000 × 180 = 360,000 samples.
- Drain: 360,000 ÷ 500 samples/s = 720 s = 12 minutes.
- Verdict window: about twice the drain time, so 24 minutes in this example.
Because recovery forwarding runs at low priority, a healthy drain can trail the live rate, so the test is the buffer's trend across the window, not one reading. If the buffer has not measurably shrunk by the end of the verdict window and the engine still reports store-and-forward, stop waiting and run the recovery ladder.
How do you confirm history is really stored again? #
Query a known historized tag for timestamps newer than the re-enable time and watch the buffer path stop growing: both together prove the engine is writing to permanent storage rather than still buffering.
Acceptance checks, in order:
- Query a known historized tag for records timestamped after the re-enable; once the buffer empties, query across the whole disable window to confirm the forwarded backlog landed.
- If the tag was renamed during the disable, query by its current name and confirm the trend or report references the renamed identity.
- Watch the buffer path: growth stopped and size falling is the drain; growth resuming means store-and-forward returned.
- Treat a live value on an operator display as proof of the live path only; it says nothing about history.
The rename is why the Historian was disabled, but the stuck state follows the shutdown and re-enable, not the rename itself. If unchanged tags record normally after recovery and a renamed tag does not, the engine is healthy and the fault is in that tag's historization definition or a display still pointed at the old name. The same acceptance discipline applies on the MQTT edge, where the equivalent test is the store-and-forward backfill after a connection outage rather than a green connection indicator.
What if it sticks again after the next shutdown and re-enable? #
Treat it as a build problem: record the version and build that Windows Apps and Features lists for System Platform and Historian, and raise the recurring stuck state with the vendor, because field reports tied a comparable condition to the 2020 generation and a vendor correction was identified there.
Collect this before the state is cleared a second time:
- The version and build Windows Apps and Features lists for both products, read there rather than assumed from the project or the install media.
- Shutdown, re-enable and recovery times for each occurrence.
- The engine attribute readings and buffer trend captured before recovery.
Reports of platforms refusing to leave store-and-forward after a historian reboot, cleared by restarting the client or by browsing to it through SMC, belong to the 2020 generation. That history is a reason to have the vendor match your exact build, not a basis for applying a 2020 fix to a 2021 system. If recoveries on this server involve repeated service restarts, also rule out a historian dump loop after a service restart, which fills the system drive with dump files. Until the vendor matches your build, the working procedure stands: check the attribute, cycle the engine, prove the drain, and keep the server restart out of it.
Questions asked
Is the buffered data lost while the engine is stuck in store-and-forward?
No. Store-and-forward exists to preserve those samples: the engine writes them to the local buffer path and forwards them when delivery recovers, at low priority. Once you clear the stuck state, query timestamps across the whole disable window to confirm the buffered history arrived; if a gap remains, that is a separate case for the vendor.
How does InStoreForward read in a redundant Historian pair?
The attribute is true if either historian in the pair is in store-and-forward mode, so a single true reading does not tell you which node is buffering. Check each node's own status and the engine attributes before you decide where the delivery stalled.
Why does a full server restart fix it when cycling the engine should be enough?
A server restart also stops and restarts every engine and service on the box, which resets the publishing state as a side effect. Cycling just the affected AppEngine reaches the same state with a far smaller blast radius, leaving the other engines, services and sessions on that server untouched.
Can you leave the engine buffering and fix it in the next maintenance window?
Yes, with eyes open. While the engine stays in store-and-forward the samples are held locally, but trends and reports against that engine run stale and the buffer keeps growing. The off-scan/on-scan cycle takes minutes, so run it in the next quiet window rather than leaving a low data rate unexplained on the status screen.