IMD SolutionComputing LibraryShop main store

Troubleshooting

Why MQTT Transmission does not publish new calculated tags

Edge computing and IIoT Published 6 min read By IMD Solution engineering team

Short answer

MQTT Transmission treats a newly created calculated tag as a change to the Sparkplug metric model and never rescans on its own, so the tag stays unpublished until a refresh republishes the Edge Node BIRTH. Watch the Refresh Required tag in the Transmission Control folder and write True to Refresh from a gateway script on its rising edge, batching bulk tag edits into one refresh.

On this page
  1. Where the publish path stops for a new tag
  2. What the Sparkplug B specification requires
  3. Diagnose from the tag provider to the broker
  4. Worked example: refresh per tag versus one batch
  5. Script the refresh from the Refresh Required tag
  6. Decision for each case
  7. Questions asked

A new calculated tag can sit healthy in the Ignition tag provider and never reach the broker: MQTT Transmission publishes its Sparkplug metric model only inside a BIRTH message and does not rescan the tag tree on its own. The publish path is not broken — the module is still announcing the model it discovered before the tag existed. The documented control lives in the Transmission Control folder: setting the Refresh tag to True makes Transmission rescan its scope, republish the Edge Node BIRTH with the new metric, and clear the matching Refresh Required tag. Watch that Required tag — it exists globally and per Edge Node — and script the same write, batching bulk tag creation into one refresh. That closes the silent gap between a tag going live in the designer and it publishing at the broker.

Where the publish path stops for a new tag #

Follow the path stage by stage:

  • The default tag provider computes the tag. A good value and good quality here prove only local execution; nothing has touched MQTT yet.
  • MQTT Transmission discovers the tags in the scope its connection publishes and holds them as the Edge Node's metric model, announced in a BIRTH message on connect and after each refresh.
  • From then on the module sends DDATA for value changes, and only for metrics the last BIRTH declared.
  • The broker forwards both message types; a subscriber such as MQTT Explorer can show only metrics the last BIRTH declared.

For the new tag the path stops at discovery: Transmission's model predates the tag, no BIRTH has carried it, and DDATA has no channel for a metric the BIRTH never declared. Existing tags keep publishing normally, which is exactly why the gap is silent — Ignition shows the tag healthy while the broker never hears of it. Until a refresh runs, every downstream consumer, historian and dashboard included, is blind to that tag; if the data feeds monitoring, alarm on the Refresh Required state so the gap is visible instead of discovered at the screen.

What the Sparkplug B specification requires #

The Eclipse Sparkplug B specification requires a publisher to announce the complete metric list of an Edge Node in its BIRTH message when it first publishes and again after every reconnect; DDATA then carries changes only for metrics that BIRTH declared. The specification defines no message that adds a single metric outside a full BIRTH, so a metric missing from the last BIRTH cannot reach subscribers until the publisher sends a new one. The one-BIRTH-then-DDATA pattern is traced in Why Sparkplug B sends DBIRTH once and DDATA only on change.

That constraint is also why the module does not auto-detect the change. The module vendor's documented reasoning: sites create, delete and modify tags by script, so a BIRTH after every tag mutation would republish the whole model for each intermediate edit and flood the broker. Refresh was left as an explicit control, and Refresh Required tags — one global, one per Edge Node — were added so scripts can see the pending state and drive it. The mechanism is documented on the refresh page of the MQTT Modules for Ignition 8.3 documentation: setting [MQTT Transmission]Transmission Control/Refresh to True sends the new structure on to the broker, and the Required tag then clears.

A consumer-side Rebirth request is not a substitute. It asks the publisher to resend the model it already holds, as covered in When to use the Sparkplug rebirth tag on an edge node; it does not rescan the Ignition tag tree, so it will never pick up the new tag. Modified-birth messages discussed for a later Sparkplug revision would cheapen model changes, but no installed Sparkplug B publisher can use them as a corrective action today.

Diagnose from the tag provider to the broker #

Work through the checkpoints once, in order, and stop retesting layers that pass:

  • The calculated tag itself. It exists, computes and reports good quality inside the default tag provider, in a folder the connection publishes. If not, repair the tag; this is not an MQTT fault.
  • An existing tag at the subscriber. An established tag from the same Edge Node still updates at the subscriber. That proves the connection, the broker and the subscription path; do not retest them.
  • The Refresh Required state. Read the global tag and the one beneath the affected Edge Node in the Transmission Control hierarchy. True confirms stale discovery — the fault in question.
  • One manual refresh. Set [MQTT Transmission]Transmission Control/Refresh to True once, without changing the broker endpoint or recreating the tag during the test.
  • The subscriber again. The new metric appears after the republished BIRTH. If it does, the broker path is clean and the permanent fix is the scripted refresh below. If the tag is still absent after the Required tag clears, the tag never sat inside the configured scope: check which tag provider and Edge Node mapping the connection actually publishes, correct it and refresh once more.

Worked example: refresh per tag versus one batch #

This example is illustrative — read your own metric count from the last BIRTH. Suppose a script creates 40 calculated tags in one new folder, one per second, on an Edge Node whose BIRTH carries 500 metrics after the change. Each refresh republishes the full BIRTH, so refreshing immediately after every tag lands costs 40 × 500 = 20,000 metric announcements, 39 of them describing models already obsolete before the next tag exists. One refresh after the last tag costs 1 × 500 = 500 announcements: 20,000 ÷ 500 = 40 times less BIRTH traffic. Correctness pushes the same way, because a refresh triggered mid-batch announces a model missing the tags created after it started, so per-tag refreshing can still leave subscribers with an incomplete folder. Create the whole batch, then refresh once.

Script the refresh from the Refresh Required tag #

  1. Read the exact tag paths from your own Transmission Control hierarchy: the Refresh tag and the global Refresh Required tag sit in the [MQTT Transmission]Transmission Control folder, and each Edge Node carries its own Required tag beneath its node folder, named after your Edge Node names.
  2. Trigger on the rising edge only. A gateway tag change script on the relevant Required tag fires the moment the flag flips; a scheduled poll instead has a worst-case detection delay equal to its interval — 5 s with an example 5-second poll — plus a few milliseconds for the tag read and write itself.
  3. Write True to the matching Refresh control and nothing else: no reconnect, no module restart, no broker endpoint change. The refresh alone republishes the structure.
  4. Scope it narrowly. Drive the per-Edge-Node pair when only that node changes; use the global pair only when one routine must manage every Edge Node together.
  5. Batch first and gate re-entry. Finish the whole scripted batch, let the watcher fire once, and treat the refresh as complete only when the applicable Required tag has cleared and the new metric is visible downstream.

Decision for each case #

  • New tag missing while existing tags publish: stale discovery state. One refresh fixes it now; the Refresh Required watcher makes the fix permanent.
  • Tags added by hand occasionally: keep the manual refresh and alarm on the global Refresh Required tag so the gap cannot stay invisible.
  • Scripts add tags regularly or in bulk: create the whole batch, then one refresh driven by the per-Edge-Node Required tag on its rising edge; keep per-tag refreshing out of the script.
  • Existing tags publish but their values change only after a refresh: a different fault, stale value delivery rather than a missing model, traced in Trace Ignition Edge MQTT values that only update on refresh.
  • Refresh runs, Required clears, tag still absent: the tag was outside the published scope. Verify the connection's provider and Edge Node mapping, correct it and refresh once more.

Questions asked

Does the refresh interrupt data flow for the tags that already publish?

No. A refresh makes Transmission rescan its scope and publish a new BIRTH, and a BIRTH carries the current value of every declared metric, existing tags included. Subscribers replace their metric model on the new BIRTH and existing tags continue publishing normally afterwards. The cost is one republish burst per refresh, not an outage, which is a further reason to batch changes and refresh once rather than per tag.

How much data is lost while the new tag waits for a refresh?

Everything the tag would have published between creation and refresh: no BIRTH has declared the metric, so no DDATA can exist for it and no subscriber or historian receives a single value for that window. The gap lasts exactly as long as the wait. With a watcher script driving the refresh it is seconds; with manual refreshes it lasts until someone notices, which is why the Required tag should be alarmed.

Does MQTT Engine need its own action on the consumer side?

No. MQTT Engine builds its tags from the BIRTH messages it receives, so once Transmission republishes the Edge Node BIRTH, the new metric arrives exactly like any metric on a fresh connect and the Engine-side tag follows. If Engine tags then misbehave, that is a separate consumer-side fault; diagnose it on the Engine side rather than refreshing Transmission again.

What does it mean when Refresh Required turns True again right after a refresh?

It means the published model is changing or mismatched again: a script is still creating or editing tags while the rescan runs, or a tag in the tree sits outside the scope the connection publishes. Finish and batch the scripted edits first, verify the connection's provider and Edge Node mapping, then run one more refresh and confirm the flag clears.

Keep reading

  • Troubleshooting

    Trace Ignition Edge MQTT values that only update on refresh

    Values that appear only after a refresh mean the Edge transmitter publishes nothing on its own: the forced republish masks a stalled change-driven path. Set a 10,000 ms scan rate with a 0.00000001 deadband and a moving signal publishes at the scan rate, then verify by counting 6 updates per minute with no refresh anywhere. Trace tag value and timestamp at each hop to find where it stops.

    Edge computing and IIoT

  • Troubleshooting

    MQTT Transmission connected but missing from the node list

    A connected badge only certifies the broker session; the gateway node list fills from the node's birth message and subscriptions. The compatibility matrix lists module 4.0.13 as supported on Ignition 8.1.21, so the fault sits in subscription behavior or MQTT Server ACLs. Read three logs from one attempt, repair the specific grants, and roll the new edge back to Ignition 8.1.18 with module 4.0.8 if production waits.

    Edge computing and IIoT

  • How-to

    Publish select tags over MQTT to cut Azure message costs

    Azure counts every message the transmitter publishes, and a Sparkplug topic subscription cannot select individual tags, so filtering on the receiving side bills every message anyway. Build a dedicated publish tag provider whose UDT instances bind a source-path parameter back to the SCADA provider, scope the transmitter to that provider alone, and deadband the members IT reports on.

    Edge computing and IIoT

Why Transmission 4.0.25 fails the Integer Long birth check