Troubleshooting
Why a CYCLIC historian query shows AUTOSUMMARYDATA wrongly
Short answer
wwOptions reports AUTOSUMMARYDATA for a CYCLIC query because that is the OLE-DB provider's preferred mode for BESTFIT, MIN, MAX, CYCLIC, INTEGRAL and AVERAGE — not the block that served the rows. With Auto Summary disabled the retrieval falls back to primary data. Confirm the real path by re-running the identical query with wwOption='PRIMARYDATA' and comparing values and elapsed time.
On this page
The AUTOSUMMARYDATA value in your wwOptions column is the retrieval mode the OLE-DB provider preferred, not the block your rows came from. For CYCLIC — and for BESTFIT, MIN, MAX, INTEGRAL and AVERAGE — the provider attempts Auto Summary first without checking whether the subsystem is enabled, so with it disabled your query read primary data and the label never changed. Prove it in one run: execute the identical query with wwOption='PRIMARYDATA' and compare values and elapsed time; with the subsystem disabled, both should match exactly. Your five-minute test span could not have used summaries regardless, because Auto Summary works at hourly resolution.
What wwOptions reports, and what it does not #
Two different facts meet in that column:
- Requested mode: the retrieval the provider tries first. For BESTFIT, MIN, MAX, CYCLIC, INTEGRAL and AVERAGE that attempt is AUTOSUMMARYDATA, made without knowing whether the auto-summary subsystem is enabled. wwOptions carries this value.
- Actual source: the storage path that served the rows, settled after the provider checks what exists and what fits the query. wwOptions does not record it.
Your FULL and DELTA queries show PRIMARYDATA because those modes sit outside the preference list, so label and path agree; on CYCLIC they diverge the moment Auto Summary is unavailable. Cyclic is also the default retrieval mode for analog tables, so this surfaces on ordinary trend queries, not only exotic ones. What the primary block holds depends on how each tag logs — for dense cyclic tags, AVEVA Historian stores one-second cyclic tags as deltas rather than as a stream of full values.
Why the fallback leaves the label unchanged #
A disabled auto-summary subsystem means no auto-summary history blocks exist and no auto-summary storage is running to answer retrieval. The provider still records its CYCLIC preference, retrieval falls back to primary data, and wwOptions keeps displaying AUTOSUMMARYDATA. The column is not a per-row provenance record, and no query option turns it into one.
| What you see | What is happening | Next check |
|---|---|---|
| AUTOSUMMARYDATA, subsystem disabled | Preferred mode only; rows came from primary data | Matched wwOption='PRIMARYDATA' run, expecting identical values and timing |
| AUTOSUMMARYDATA, subsystem enabled, span under 1 hour | Preferred mode only; hourly summaries cannot fit the span | Retest with a months-long span and a cycle above a few hours |
| PRIMARYDATA on FULL or DELTA | Mode outside the preference list; label matches path | None — this is the honest reading |
Where Auto Summary pays off #
Auto Summary writes one summary per hour, so a span shorter than a single summary interval reads primary data whatever the label says. The payoff is the opposite regime: queries of months or years in which the cycle duration exceeds a few hours and primary data is dense — a tag changing every few seconds — so the provider answers from summary blocks instead of scanning primary history. Summary availability is one input behind what actually decides historian data retrieval speed over long ranges, but the query's own span and cycle decide whether summaries can serve it at all.
Worked example: a 5-minute CYCLIC span against hourly summaries #
Inputs:
- Retrieval mode CYCLIC over a 5-minute span — the reported test case.
- Auto Summary resolution: one summary interval per hour — the documented subsystem limit.
- Auto-summary subsystem: disabled — this environment.
- wwOptions value returned: AUTOSUMMARYDATA — observed in the result set.
Rule in words: a span must cover at least one complete summary interval before hourly summaries can serve it; anything shorter sends CYCLIC retrieval to primary data, and the label still reports the preferred mode.
Arithmetic: one summary interval is 1 h, and 1 h = 60 min. 60 min ÷ 5 min = 12, so the span is 1/12 of one interval and contains zero complete summary intervals. On top of that, the disabled subsystem means no summary blocks exist to serve even a compliant span.
Result: the rows came from primary data, and AUTOSUMMARYDATA is the provider's preference for CYCLIC and nothing more.
Decision: treat any span below 60 minutes as a primary-data read — it is not a valid test of summary retrieval. To exercise the summary path, enable Auto Summary, let it generate history, and query a months-long span whose cycle duration exceeds a few hours; that is the regime where summaries carry the load.
Confirm the path with a matched primary-data query #
- Record the original CYCLIC query exactly: tag selection, start and end time, cycle count or duration, returned values, elapsed time, and the wwOptions value.
- Re-run it with wwOption='PRIMARYDATA' and nothing else changed, so the data source is the only variable.
- Compare values first. With Auto Summary disabled the two result sets are expected to be identical, because the CYCLIC run already fell back to primary data.
- Compare elapsed time. It is expected to hold as well, for the same reason.
- If values or timing differ while the subsystem is disabled, a tag, range or cycle slipped between runs — align the queries and repeat rather than reading the difference as provenance.
- With Auto Summary enabled, treat differences as clues only: summary values can agree with values derived from primary data, and execution time moves for reasons beyond the storage path.
Serving a dashboard from summary blocks #
The plan of enabling Auto Summary and querying with CYCLIC is necessary but not sufficient. Work it in this order:
- Enable the auto-summary subsystem in the historian configuration and confirm it is operating.
- Confirm it has generated summary history covering the range the dashboard requests; blocks that do not yet exist cannot be read.
- Keep the dashboard's span and cycle compatible with hourly resolution: months-long spans, cycle durations above a few hours.
- Run the matched wwOption='PRIMARYDATA' comparison before trusting the load profile.
With the subsystem enabled and a long-span, coarse-cycle CYCLIC query, summary retrieval is the configuration that keeps a Grafana dashboard from repeatedly scanning dense primary history. Spans below the hourly resolution read primary data by design, and no query option changes that.
Questions asked
Does AUTOSUMMARYDATA in wwOptions prove the rows came from summary blocks?
No. The column records the provider's preferred mode, which for CYCLIC it attempts without checking whether the subsystem is enabled. Provenance is settled afterwards by availability and fit: with Auto Summary disabled there are no summary blocks at all, so the rows come from primary data while the label stays AUTOSUMMARYDATA.
What difference should the wwOption='PRIMARYDATA' comparison show when Auto Summary is disabled?
None. Repeat the query with the same tags, time range, retrieval mode and cycle, adding only wwOption='PRIMARYDATA': values and execution time are expected to stay the same, because the CYCLIC run already fell back to primary data. Any difference points to a changed tag, range or cycle rather than a different storage path, and the same comparison becomes your baseline once you enable Auto Summary.
How long must a CYCLIC query run before Auto Summary can serve it?
The span must exceed one summary interval: summaries are stored at hourly resolution, so a five-minute span is one twelfth of a single interval and reads primary data even with the subsystem enabled. The documented fit for summary retrieval is a months-long query whose cycle duration exceeds a few hours against primary data that changes every few seconds.
Is enabling Auto Summary and querying with CYCLIC enough to keep a dashboard off primary data?
Not quite. Enabling the subsystem and using CYCLIC is necessary, but the subsystem must also have generated summary history covering your range, and the span and cycle must fit the hourly resolution. Verify with the matched wwOption='PRIMARYDATA' run before trusting that the dashboard is off primary data.
Why do FULL and DELTA queries show PRIMARYDATA while CYCLIC shows AUTOSUMMARYDATA?
FULL and DELTA sit outside the provider's Auto Summary preference list, so their wwOptions value reflects the primary path directly. BESTFIT, MIN, MAX, CYCLIC, INTEGRAL and AVERAGE are the six modes where the provider attempts Auto Summary first, which is why only those can show AUTOSUMMARYDATA while actually reading primary data.