IMD SolutionComputing LibraryShop main store

Troubleshooting

Why an Easy Chart pen shows no historian data

Edge computing and IIoT Published 7 min read

Short answer

A live tag with an empty Easy Chart pen is a historian write-path fault, not a tag fault. Clear the SQL Server no count option first; if it is already off, remove the trigger or procedure statement that makes the update return a result set, then let the store-and-forward cache drain.

On this page
  1. What the blank pen proves
  2. Worked example: pen fault or write fault on a 1077-px chart over 24 hours
  3. Check no count on the instance the historian uses
  4. Find the statement that emits rows
  5. Let the cache drain, do not purge it
  6. When rows exist, fix the pen
  7. Verify the restored path end to end
  8. Questions asked

A pen that stays blank while its tag shows a live value is a historian write-path fault, not a tag fault and not a chart fault. The pen reads stored samples from the historical provider; nothing is stored because the history write dies on the console error that an update query is returning a result set, and the store-and-forward cache — now full — is holding the backlog. Work it in this order: clear the no count option on the SQL Server under server Properties, the Connections page, Default connection options; if it is already clear, find and remove the trigger or stored-procedure statement on the update path that emits rows; then let the cache drain and re-query the chart window. Do not purge the cache to silence the alarm.

What the blank pen proves #

The Easy Chart is the Vision component that builds runtime-configurable timeseries charts from Tag Historian data. Dragging a history-enabled tag onto it creates a pen with a historical binding: the chart asks the historical provider for stored samples inside the displayed range. It does not fall back to the tag's current value, so an empty chart with a live tag means one thing — the provider has no stored samples to return for that range. Pens can read from any historical provider, and tag history from different databases can sit on the same chart, so the provider named on the pen decides which database holds the answer.

A live tag value proves the path from the controller to the tag and the current-value read. A green database connection proves the session exists. Neither proves a single history write completed: the historian's read and write operations are separate, and a write can fail on the shape of the SQL response while every connection test passes.\n

What you see What it proves Where to work
Live tag value, empty pen Current-value path works; no stored samples in range Provider query, then the write path
Database connection green Session is available Individual writes can still fail; read the console
An update query is returning a result set The history writer rejected the SQL response Database objects on that update path
Cache full, buffer affected Writes fail faster than they forward Fix the write, then drain the queue

Worked example: pen fault or write fault on a 1077-px chart over 24 hours #

Inputs, each with its source:

  • Tag: history enabled, live value on screen, running for two days — the operator's case.
  • Store-and-forward cache: full, buffer affected — the store-and-forward diagnostics page.
  • Console error: an update query is returning a result set — the gateway console.
  • Chart width: 1,077 px — the deployed Easy Chart on the operator screen.
  • Displayed window: 24 h, equal to 86,400 s — the check window, inside the tag's two days of runtime.
  • tagHistoryResolution of 0 — automatic mode, which by documentation uses the width of the chart.

Rule in words: in automatic mode the request is sized to the chart width, so each requested datapoint spans the window divided by the width. The deciding measurement is separate from the chart: query the same historical provider, for that one tag, over that same window, and count the rows returned.

Arithmetic:

86,400 s ÷ 1,077 px = 80.2 s per requested datapoint (1,077 × 80 = 86,160 s; 86,400 − 86,160 = 240 s; 240 ÷ 1,077 ≈ 0.22 s.)

Result: the provider query returns 0 rows for the window, with the cache full and the result-set error present in the console.

Decision, one per case. Zero rows from a tag that has been live and history-enabled for two days, with a full cache, puts the fault on the write side: go to the SQL Server checks and leave the pen alone. A count of one row or more puts the fault on the pen: fix its tag path, its provider, or its time range. On a remote provider, a query that answers None instead of a row set is a different fault again; the remote tag historian query returning None fix covers that layer.

Check no count on the instance the historian uses #

The setting is a SQL Server setting, not an Ignition one. In SQL Server Management Studio, right-click the server, open Properties, select the Connections page, and clear no count under Default connection options. The page layout differs between SQL Server releases, so search that version's own wording if the option sits elsewhere.

Two limits on what this check can do. First, confirm the historian connection actually points at the instance you just edited; correcting a different instance produces a right-looking setting with no effect on the fault. Second, the server option governs the completion messages returned with statements — it cannot suppress a result set that a SELECT inside a trigger or stored procedure produces. In the operator's case the option was already clear, so the answer is not on that page: the row-producing statement is in the database objects on the update path.

Find the statement that emits rows #

An update in the history write path should answer with completion status and affected-row information. A tabular result alongside it — from a trigger on a history table that runs a SELECT, a stored procedure that returns rows during the update, or middleware in the execution path — is what the writer rejects, every time, until the cache fills.

  1. Capture the first result-set error with its timestamp and the database connection it names.
  2. Open the database objects invoked by that update: triggers on the target tables first, then any procedure or middleware in the path.
  3. Remove the row-producing statement from the update path, or move it out of the execution the history writer sees.
  4. Generate one new value that satisfies the tag's history mode and confirm the error does not recur.

Correlating the first error text with the operation that produced it is the same discipline as tracing a SQL log error after a historian migration. An update that answers with the wrong shape of response is the failure family described in resolving fpmi.db.runUpdateQueryGetKey returning None: the caller and the database disagree about what an update returns.

Let the cache drain, do not purge it #

Store-and-forward exists to ride out database outages; it caches samples and forwards them later. It cannot repair a rejected statement, so the full-cache alarm is a consequence of the write fault, not a second fault. After the fix, the queued count tells the truth: falling means forwarding has resumed; flat or rising means the write path is still blocked.

Purging the cache to clear the alarm discards the queued samples — the backlog that fills the chart window once writes succeed. A cache that stays large after recovery also drags history query speed; the store-and-forward cache query performance degradation fix covers that follow-on. Re-query the window through the chart as the queue approaches empty; the connection status tells you nothing about either step.

When rows exist, fix the pen #

If the provider query returns rows for the window, the write path is innocent and the pen is the fault. Check in order: the pen's tag path against the history-enabled tag; the provider named on the pen, since providers point at different databases; and the displayed time range against the timestamps actually stored. Set tagHistoryResolution to -1, which requests raw data, while checking — 0 means automatic and sizes the request to the chart width, aggregating sparse data into the 80-second buckets of the worked example.

When the console is clean, rows exist for some tags and not others, and the write path checks out, the logging rule itself is the likelier fault — read the case of an Ignition historian logging memory tags but not OPC tag changes before touching SQL again.

Verify the restored path end to end #

  1. Controller to tag: force one value change; it arrives with usable quality.
  2. Tag to historian: the change satisfies the tag's history mode and a sample enters the pipeline.
  3. Historian to database: no result-set error in the console; the queued count falls.
  4. Database to chart: a range that includes the new sample renders it on the pen.

Only a stored sample read back through the chart proves the whole path. A green connection proves the session, a drained queue proves the writes, and neither alone fills the pen.

Questions asked

Is the no count option set in Ignition or on the database?

On the database, not in Ignition. Apply the server Properties steps from the article on the instance the historian connects to, and use the management tool's search if the option sits on a differently named page in your release. Then confirm the historian connection points at the instance you actually edited; correcting a different instance leaves the fault untouched.

Why will the chart not fall back to the live tag value?

A pen is a historical binding: it asks the historical provider for stored samples inside the displayed range and renders nothing when there are none. The live value travels a separate current-value path. The chart can also plot data that was never set up in Tag Historian, as long as it carries timestamps, which is why a provider query rather than the screen decides where the fault sits.

Can I clear the full-cache alarm by purging the store-and-forward cache?

No. Purging discards the queued samples, which are exactly the backlog that confirms the repair and fills the chart window afterwards. Restore successful database writes first, then watch the queued count fall on its own. A count that stays flat or rises means the write path is still failing, whatever the alarm state suggests.

How do I confirm the history path is healthy again?

Force one new value that satisfies the tag's history mode, watch the console for a clean write with no result-set error, and check that the store-and-forward queue falls. Then set the chart to a range that includes the new sample and confirm the pen renders it. Seeing that sample come back through the chart is the end-to-end proof; a green database connection on its own is not.

Keep reading

  • Selection guide

    Choosing an edge data path for periodic records

    For independent periodic samples, Tag Historian with Edge Sync Services is the reliable path and buffers 35 days locally. For one atomic row per collection cycle, use MQTT Transmission records landing in MQTT Recorder. For true transaction groups, license a standard gateway for that node.

    Edge computing and IIoT

  • How-to

    Setting historian pruning and retention for Ignition tag history

    Prune tag history on the history provider, not with the transaction group's delete setting: in the Gateway's tag history configuration, enable data pruning and set a retention period in days. At 250 MB per day of growth, 30 days of retention holds about 7.5 GB and a full year about 91 GB. Deadband and Max Time Between Samples decide most of the daily rate, and QC records from transaction groups keep growing on a separate budget.

    Edge computing and IIoT

  • Explainer

    Tag Historian vs SQL Bridge storage for a short-term trend database

    Use Tag Historian for plant-wide short-term trending because it stores narrow, on-change rows; keep SQL Bridge for PLC-to-database handshakes that need one wide row per group execution. Copy closed time partitions and the tag-mapping tables to the downstream historian, and prune only after the copy is confirmed.

    Edge computing and IIoT