A one-hour gap in a historian can be data that was never produced, data produced but never delivered, data delivered and rejected, or data stored under another time. The shape of the gap (all tags or some, exactly 60 minutes or any duration) and the collector and server logs show which of the four it is.
Symptom
Trends show a blank, a straight line joining two points or repeated values for about an hour. Live SCADA may have kept working normally, and operators may have noticed nothing. The problem surfaces when the shift report is requested or a trip is reconstructed.
Where the historian sits among servers, RTUs and the tag database is explained in SCADA architecture and tags. The question here is where that hour was lost.
Likely causes, from most to least likely
| Cause | How to recognize it | What confirms it | What rules it out |
|---|---|---|---|
| Collector or interface stopped or disconnected, no local buffer | All tags of one interface missing | Service log with drop and reconnection | The collector wrote other tags of that interface |
| Clock or time zone jump | 60-minute gap, sometimes duplicated or future data | Clock change event; samples with another timestamp | Stable clocks and no shifted samples |
| Full disk, file or partition not created, license or limit | All tags from all sources missing | Write errors on the server | Other sources wrote during the period |
| Maintenance: backup, reboot, update, antivirus | Matches a scheduled task | Operating system log | No task or reboot |
| Data rejected for quality or out-of-range time | Tags from a device with a bad clock missing | Discarded sample counter | Samples accepted with good quality |
| Compression or deadband too wide | Only slow signals; straight line | Raw samples sparse but valid | Fast-changing signals are also missing |
| No data at the source | Live SCADA did not have it either | Lost communication event with the IED | SCADA logged events during the period |
How to diagnose it
- Do not restart yet. Copy historian, collector and operating system logs.
- Bound the gap with raw samples, not the interpolated chart: last sample before and first after.
- Measure the scope. Pick tags from at least two interfaces and one generated inside the server, such as a counter or heartbeat. If the internal one is missing, it is the server; if only one interface is missing, it is the collector or its link.
- Look for shifted data. Query one hour earlier and later, and future dates too. Compare source time with insertion time if the database keeps both.
- Check clocks of server, collector and devices: configured source, time zone and correction events. Storing in UTC prevents a local time change from repeating or skipping an hour; mismatched clocks are covered in event time offset between relay and SCADA.
- Check local buffering: whether the collector stores when it loses the server, how much fits, whether it filled and whether it forwarded on recovery.
- Check resources: free space at that moment, file sizes, rotation tasks and database errors.
- Check tag configuration: logging mode (on change or periodic), exception and compression deadbands, and maximum time between samples.
What the shape of the gap says
| What you see in the raw data | Likely meaning | Next step |
|---|---|---|
| No samples of any tag, then everything normal | The server did not write | Disk errors, service and reboots |
| A burst of old samples when the gap ends | The buffer is forwarding | Wait until it finishes and query again before declaring loss |
| Start of the gap empty, end complete | The buffer filled and dropped the oldest data | Size local storage |
| Two different values with the same time next to a blank | A clock stepped back or jumped | Time change events |
| One repeated value with bad quality | The source stopped updating | Communication between collector and device |
Wait for forwarding to finish before closing the diagnosis: a collector emptying its buffer at low priority may take a long time to fill the span, and a report pulled meanwhile shows a loss that is not yet final. Totals and averages calculated from those tags often keep the incomplete result, so recalculate them after recovering or importing the data.
Illustrative example
Invented figures. A collector receives 2,000 tags and writes an average of 400 samples per second. In one hour that is 400 × 3,600 = 1,440,000 samples. Its local buffer is limited to 500,000, that is, 500,000 / 400 = 1,250 seconds, about 21 minutes. If the server was down for an hour and the buffer drops the oldest data, only the last 21 minutes come back and about 39 are lost. Covering one hour with double margin takes capacity for 2,880,000 samples, and the disk must be checked for it.
What to do
- Collector without buffer: enable store and forward, size it from the real rate and test it by disconnecting the link in an agreed window.
- Time: a single time source, UTC in the database and local time only for display. Avoid large clock step corrections.
- Disk or partition: free or extend according to the retention policy, after a backup, and alarm free space before it runs out.
- Scheduled tasks: move their window and apply the antivirus exclusions the historian vendor specifies.
- Compression: reduce the deadband for critical signals and set a maximum time without a sample.
- Monitoring: raise an alarm when the historian heartbeat stops advancing.
- Recovery: import what exists in buffers, devices or meters and flag it as recovered. Bring in a specialist if the database shows corruption.
Field checklist
- Logs copied before restarting.
- Gap start and end taken from raw samples.
- Scope checked: one interface, all, or some tags.
- Search for time-shifted data.
- Clock and time zone events reviewed.
- Local buffer: capacity, fill level and forwarding.
- Disk, rotation and scheduled tasks verified.
- Controlled outage test after the fix.
What not to do
- Do not fill the gap with interpolated values without flagging them.
- Do not delete database files to gain space without a verified backup.
- Do not change the production server clock to “test”.
- Do not patch a historian without a rollback plan.
When to call us
Call us if gaps recur with no pattern, if the database reports errors or if you need local buffering, redundancy and monitoring properly sized. We review the architecture and logs. We configure it remotely: ask about your historian.
Common problems
The historian has not stored data for days
How it shows. Trends stop at a date and never resume, although live SCADA keeps updating. Unlike a bounded gap, the cause is still active and more is lost every hour.
Likely causes. Logging or collector service stopped and not set to start automatically; full disk or database; expired license or tag limit reached; changed service account password or expired certificate; collector pointing to the previous server address or name; writing to a file or database other than the one the report queries.
How to diagnose it. Take the exact time of the last raw sample and find what changed then: reboot, update, password or network change. Check service status, free space and license and authentication messages. Produce a known change on a harmless signal or watch the heartbeat: if it is not written, the fault persists; if it is written but the query does not show it, check which file or database the report points to.
What to do. Before restarting, copy logs and find out how much the collector buffer holds: after days of outage it may be overwriting the oldest data. Save what is recoverable, correct the cause, confirm new samples arrive and leave an alarm on the age of the last sample, delivered by a means that does not depend on the historian itself.
What not to do. Do not reinstall or create an empty database over the existing one.
Related guides
- SCADA levels and tag database
- Remote substation losing data when the wide area network fails
- Frozen values while the meter is live
- Samples with a zero timestamp
- Time server delivering a future date
References
- IEC 62541 (OPC UA), part 11: historical access.
- IEEE 1588 / IEC 61588, precision time protocol.
Frequently asked questions
Why does the gap last exactly one hour?
An exact duration points to time: a time zone or daylight saving jump, a corrected clock, or an hourly file or partition that failed to be created. A link or server outage rarely lasts a round number.
Can the missing data be recovered?
Only if something kept it: the collector buffer, the field device event log, a meter load profile or a redundant server. Retrieve it soon, because those memories get overwritten.
Is a flat line a gap?
Not always. With compression or deadband the historian writes nothing while the signal stays within the threshold and the chart joins two points. Check quality and timestamps of the raw samples before declaring loss.