Troubleshooting
PowerChart component error on empty DB Table Historian data
Short answer
A PowerChart component error on a DB Table Historian query has two reported triggers: a query that returns no records while pointCount is -1 or 0, the settings that prevent interpolation, and a date range so narrow that rangeStartDate and rangeEndDate become the same timestamp. Recover by selecting a timeframe with data and re-adding the pen, or adding another pen to force a re-render. Keep pointCount unchanged and send the browser console error to support.
On this page
A PowerChart component error that appears only on a DB Table Historian query has two reported triggers. The first is a query that returns no records while pointCount is -1 or 0 — in this setup those values are required so the chart draws stored data without interpolation. The second is a date range narrow enough to force the range selector's rangeStartDate and rangeEndDate onto the same timestamp. Both leave the component without a graceful failure path, and the chart stays down until you act. The recovery is to select a timeframe that contains data and re-add the pen, or to add another pen to force a re-render. Keep pointCount where it is, capture the full error from the browser console, and send it with the reproduction conditions to support. The behavior was reported on version 8.1.45.
Two triggers behind one component error #
The Power Chart is the Perspective chart component, and the fault was reported when its query ran against a DB Table Historian provider, the provider that stores tag history in your own database tables. The same Component Error covers two distinct conditions:
- Empty result path. The query returns zero records for the pen's tag while
pointCountis -1 or 0, the no-interpolation setting this setup requires. The chart is asking for exactly what is stored, receiving nothing, and the component fails to recover from that outcome instead of drawing an empty trend. - Collapsed range path. The selected start and end sit so close together that
rangeStartDateandrangeEndDate, the properties that track the user's selected range, come out equal. The reporter tied the same error to this boundary condition. - Both together. A very narrow interval can return nothing and collapse the range at once, so spotting one condition proves nothing about which one fired. The reproduction below separates them.
Treat the empty query as a valid outcome and the error as a display fault. An interval with no rows is a correct answer from the historian; the component error is the chart failing to handle that answer. Other plant software hides the same split — an Archestra SQLData object returning zero records in its Object Viewer looks like a data fault until the display side is checked on its own.
| Condition to test | Where to look | What it tells you |
|---|---|---|
| Zero records for the pen in the interval | The query result for the pen and dates | Exercises the empty-result path |
| Range boundaries resolve equal | The range selector's rangeStartDate and rangeEndDate |
Exercises the boundary path |
| Full runtime exception | The browser developer console during a real session | Supplies the error text support needs |
Confirm the interval truly has no records #
The DB Table Historian provider keeps tag history in your own database, and the historian splits that data into tables by the provider's partition length and units, so a monthly partition holds each month's rows in its own table. Two checks settle the data side before the chart takes the blame:
- Pull the newest rows for the tag with the method in get the last N stored records from an Ignition tag history query. Rows with a recent timestamp prove the tag writes and date the newest partition.
- Check the partitions your interval covers in the raw tables. An interval dated before the earliest partition cannot return rows by construction, which makes it a reliable empty-result test case.
When a pen draws nothing on a range that does hold rows while the chart itself stays up, the fault family is different; why an Easy Chart pen shows no historian data walks that case.
Reproducing the error on a tank-level pen with pointCount -1 #
Example setup: the tag path and timestamps below are invented test values, so pick spans against your own partitions and a tag you know writes.
- Pen: a tank-level tag, for example
Line1/Tank01/Level_PV, queried through the DB Table Historian provider on the Power Chart. pointCount= -1, the no-interpolation setting from the report.- Control run: an interval from 2024-03-04 06:00:00 to 2024-03-04 12:00:00, inside a month the example historian already stores.
- Empty run: an interval from 2019-01-01 00:00:00 to 2019-01-01 00:05:00, dated before the earliest partition.
- Narrow run: an interval from 2024-03-04 08:00:00 to 2024-03-04 08:00:00, with start equal to end.
The rule in words: a query can only return rows that exist, so the empty-result trigger fires when a query returns none while pointCount holds the no-interpolation value, and the boundary trigger fires when the range width is zero, because then rangeStartDate and rangeEndDate carry the same timestamp.
The arithmetic for each run:
- Control width: 12:00:00 − 06:00:00 = 6 h, and 6 h × 3,600 s/h = 21,600 s. Boundaries differ and rows exist, so this run should render.
- Empty-run width: 00:05:00 − 00:00:00 = 5 min, and 5 min × 60 s/min = 300 s. The boundaries differ but the interval predates every partition, so the query returns 0 records and the reported trigger fires.
- Narrow-run width: 08:00:00 − 08:00:00 = 0 s, so
rangeStartDateandrangeEndDateare equal; a zero-second window also holds no rows, so both triggers coincide on this run.
Result on the reported behavior: run one renders the stored trend and runs two and three raise the Component Error. Log the query outcome and both range values for every run.
The decision: 0 returned records with the no-interpolation setting, or a range width of 0 s, are the trigger conditions; any width above 0 s with rows present renders. Keep pointCount at the no-interpolation value, keep operator-facing ranges wider than 0 s, and treat an error on a populated, nonzero-width range as a separate fault.
Recovering the chart without changing pointCount #
- Select a timeframe where the pen's tag has rows — the control span from the example above.
- Remove the failed pen and re-add it, so the component rebuilds its query against the populated range; this is the recovery the reporter used.
- If the current range must stay on screen, add another pen instead: the added pen forces the component to re-render and clears the error state.
- Leave
pointCountuntouched. Another value may redraw the chart, but it changes the trend and masks the condition being diagnosed. - Re-run the empty-interval test afterwards. Recovery proves the component redraws on populated data; it does not fix the empty-result handling, and the error returns on the next empty span.
Pen actions sit behind other Power Chart display faults too, among them Power Chart auto-scale that stops updating after a pen deselection, so the same pen-level checks are worth applying there.
Capture the console error and report it #
The error overlay names the component, not the cause. Reproduce in a real browser session, open the browser's developer console, and take the full error text from there — that is what support asks for on this fault. Send the console text together with the build you run (the report came from version 8.1.45), the pen and its tag, the query interval, the pointCount value in use, and the rangeStartDate and rangeEndDate values at the moment of failure. Run all three example runs with the console open and attach the output for each: errors on the empty and narrow runs only are the signature this article describes.
What each outcome means #
- Error on the empty run only, clean render on the control run: the empty-result path is confirmed. Keep the no-interpolation setting, recover with a populated range and a re-added pen, and report with the console capture.
- Error on the narrow run with equal boundaries and rows on either side: the boundary path is confirmed. Keep operator-facing ranges wider than 0 s, since widening by even one second separates the two boundaries, and recover the same way.
- Error on the control run: neither reported trigger. Move to the data-side checks above, then the console capture, because a populated, nonzero-width range that errors is a different fault.
- No error anywhere: the chart and historian are behaving as documented, and the original sighting was one of the two reported conditions, which the recovery steps cover the next time it appears.
Questions asked
Which build shows this PowerChart component error?
The behavior in this article was reported on Ignition version 8.1.45 with a DB Table Historian query on the Perspective Power Chart. That is a field report, not a confirmed defect with a fixed-in build, so reproduce on your own build before treating it as version-specific, and let the vendor's support channel confirm status for the version you run.
Why leave pointCount at the stored-values-only setting instead of changing it?
Because that value is what keeps the chart on stored rows. How a query fills the gaps between samples follows the tag's value mode, with Analog tags interpolated and Discrete tags stepped, and the reporter pins the queried point count so no interpolated or aggregated points are requested. Any other count may redraw the chart, but it changes the trend operators see and hides the fault.
Can the error fire while the range holds data?
Yes, on the second trigger. Choose start and end dates so close that rangeStartDate and rangeEndDate resolve to the same timestamp, and the error can appear even with rows stored on either side of the moment. In the worked test that condition is a range width of zero seconds; widening the range by any amount separates the boundaries again.
Is a zero-record query result itself the fault?
No. A query over an interval with no rows is a valid outcome: before the historian stored anything, or across a span the tag never wrote, zero records is the correct answer. The fault is the component's handling of that outcome, which is why recovery restores the chart while the underlying behavior still needs the support report.