Troubleshooting
Why Available Historical Tags stays empty for MQTT Engine history
Short answer
The Available Historical Tags pane lists only tag paths a historian provider has stored, so an MQTT Engine tag with good live values but no provider-assigned history stays invisible. Confirm the live timestamp advances, enable history on the tag with the provider behind your datasource, generate two qualifying value changes, and refresh the tree; the tag then appears under the datasource connection that holds the samples.
On this page
- Why is Available Historical Tags empty when the database already has my data?
- How do I prove the live MQTT tag is actually updating?
- Where does history get enabled for MQTT Engine tags?
- Which history provider must the tag use?
- How many value changes does the tag need before it appears?
- Why is dragging a tag into the pane rejected?
- How do I confirm the report now finds the tag?
- Questions asked
Available Historical Tags in the tag historian query editor lists only the tag paths a historian provider has actually stored, so an MQTT Engine tag whose history was never enabled through the supported workflow stays invisible even while its values land in the database. Accurate rows prove some writer works; they do not prove your tag path was registered under the datasource your report queries. Confirm the live tag updates, enable history with the provider behind that datasource, store two qualifying value changes, then refresh the tree.
Why is Available Historical Tags empty when the database already has my data? #
The pane is empty because it enumerates only the tag paths a historian provider has registered, and your MQTT Engine tag was never stored through one, so storage elsewhere in the database never created the metadata the browser reads.
Tag history moves through three stages, and each stage can pass while the next one fails:
- Delivery — the publisher reaches the broker, MQTT Engine subscribes, and live values with current timestamps show in the tag tree.
- Storage — history is enabled on the tag with a history provider selected, and a controlled change creates a new sample through that provider.
- Discovery — the historian registers the tag path with its provider metadata, and the pane lists that path under the datasource the provider writes to.
Accurate rows in a database table prove only that some writer works: a script, a separate logging path or an earlier configuration can fill tables the historian never touches, so the pane — which is not a generic SQL table browser — never sees them. The datasource node InsightMySQL in the tree proves the editor enumerates that connection; it does not prove any historical path is registered beneath it. The populated branch under Sample_SQLite_Database is the control case: the pane itself works, so the difference between the two branches is exactly what you must fix on your own tags.
Decision: treat the empty branch as a missing registration, not a broken historian, and work the checks below in delivery, storage, discovery order.
How do I prove the live MQTT tag is actually updating? #
Open the Engine tag tree, pick one affected tag, record its value, quality and timestamp, force one source change, and require the timestamp to advance; if it does not, fix the MQTT transport first, because no history setting can store a dead tag.
A plausible value with an old timestamp is not proof of a current subscription, so read the timestamp and the quality, not the number. Check the Engine connection state to the broker, and take the broker address and listener port from the active configuration at both ends rather than from memory. Force one source change and require the value, quality and timestamp to advance in the Engine tag tree. If they do not, stop there: subscription scope, transport or topic interpretation is broken, and history configuration cannot repair it.
When live values look healthy but nothing records, the fault sits at the historian boundary — the same pattern as Ignition historian tags that stopped recording while live data stayed good.
Decision: a timestamp that advances with good quality clears the MQTT path and moves the search to the history-provider association.
Where does history get enabled for MQTT Engine tags? #
History is set at both ends: the MQTT Transmission side publishes historical data to the broker from its History configuration, and the gateway running MQTT Engine stores it, which means that storing gateway must hold the historian license.
On the publishing side, the documented path is Config → MQTT Transmission → History, where you create the MQTT Server Setting that carries historical data to the broker the Engine subscribes to. On the storing gateway, the Engine-created tag carries its own history settings, and central storage requires the historian license on that gateway. The module vendor's MQTT history documentation collects the caveats of this two-sided setup; read it before changing either side, because a setting made at the wrong end looks identical to a missing one from the database.
Decision: enable history on the Engine-managed tag on the storing gateway, keep the Transmission-side history setting pointed at the same broker, and confirm the historian license covers the storing gateway.
Which history provider must the tag use? #
The tag's history provider must resolve to the datasource your report queries, so with a connection named InsightMySQL, the provider backing InsightMySQL is the one to select; a provider whose database has a similar name sends history to a branch you never expand.
Read the provider from the running tag instead of trusting the database connection name, then save and read the setting back from the running tag to confirm it persisted. When the tag is a reference tag to an Edge provider, enabling history on the reference tag populates only this gateway's historian, and the Edge keeps recording its own history independently; the two stores never merge, and the datasource you pick decides what the report sees. That split matters when you later compare or backfill the two stores — the walkthrough of backfilled Sparkplug history through Ignition reference tags shows the reference-tag side of it.
Decision: with a connection named InsightMySQL, select the provider that resolves to InsightMySQL, then verify by read-back, not by the presence of old rows.
How many value changes does the tag need before it appears? #
Generate two clearly different value changes after the configuration change and confirm each creates a stored sample; two changes rule out a coincidence, and zero stored changes mean the mode never qualified anything, which is a storage-mode question, not a browse problem.
Run one tag through this test, with example values and clock times:
- Enable history on the Engine tag with the provider set, and read the setting back — activation time 14:05:00 UTC in this example.
- Force a first change — 42.3 to 44.0 at 14:05:26.
- Force a second change — 44.0 to 41.9 at 14:05:47.
- Read the newest stored sample timestamp for that tag: 14:05:47.
- Subtract: 14:05:47 − 14:05:00 = 47 s, so both stored samples postdate the provider change and belong to the new association.
If the newest sample instead reads 13:58:03, it predates activation by 417 s — 14:05:00 − 13:58:03 = 417 s, or 6 min 57 s — and those rows came from an earlier configuration or a different writer, proving nothing about the current provider. With an on-change mode, an unchanged value stores nothing at all: the stored count equals the qualifying-change count, and the comparison of how the Auto deadband style changes what a historian stores shows how much the style alone moves that count.
Decision: two forced changes with a newest timestamp 47 s after activation mean storage is flowing; if nothing stores, fix the mode or the provider before touching the pane.
Why is dragging a tag into the pane rejected? #
Dragging is rejected because the pane is a read-only browse tree of paths the historian has already registered, not a drop target that registers tags; registration happens only when history is configured through the supported workflow and samples flow through the selected provider.
The pane enumerates; it does not accept drops. The same mechanism filled the Sample_SQLite_Database branch, which is why that branch populates without anyone dragging anything into it. After the two test changes store, reopen the query editor so it rebuilds the tree from the historian, expand the datasource branch and look for the tag's full path. If paths linger after tags are deleted — the opposite fault — the cleanup of stale historian tag browse tree entries after a restore covers that case.
Decision: register through the tag's history configuration, never by dragging; the pane fills from stored metadata or stays empty.
How do I confirm the report now finds the tag? #
Refresh the tag selection tree, expand the datasource branch, select the registered path, run the tag historian query over a window that contains your two test changes, and require the returned rows to carry exactly the timestamps you forced during the test.
A known tag, a known value and a known timestamp close the loop: the query window must contain the activation and both forced changes, and the returned rows must match what you forced. When the provider sits on another gateway, the query resolves it as a remote provider, and querying tag history from a remote tag provider covers that case. A row count smaller than the number of changes you forced points at the logging trigger, buffering or retention — not at the registration.
Decision: the branch lists the path and the query returns the two forced samples, so the registration is complete and the report is unblocked; if the branch stays empty after a verified read-back and two qualifying changes, reread the provider field on the running tag, because that association is still wrong.
Questions asked
Why does the sample SQLite datasource list tags when my historian connection does not?
The sample datasource already carries registered historical paths, so its populated branch proves the browse pane and the query editor themselves work. Every datasource lists only the paths its own historian has registered, which makes the empty branch under your connection a registration problem on your tags, not a fault in the pane.
What happens to Edge history when I enable history on a reference tag?
Per the module's remote tag provider reference, history enabled on a reference tag populates only the central gateway's historian, and the Edge continues to record its own history independently. You end up with two separate stores, and the datasource chosen in the query editor decides which store your report reads.
Should I query the historian's internal tables with SQL instead of the pane?
No. The pane is not a generic SQL table browser, and an ad-hoc SELECT against an application table cannot resolve the registered path and provider metadata the historian query uses. Run the tag historian query against the datasource instead; it resolves both, so the report keeps pointing at the same store the tree shows.