Troubleshooting
Why the UNS Transmitter reports Tag Count = 0 after UDT conversion
Short answer
Tag Count = 0 on the UNS Transmitter means MQTT Engine is still holding UDT instances and definitions created before Convert UDTs was enabled, and the transmitter discovers only leaf tags. Disable MQTT Engine, delete the Engine-side UDT instances and definitions, re-enable it, and confirm the namespace rebuilds as regular tags before touching the broker bridge or Azure.
On this page
- Why does the UNS Transmitter show Tag Count = 0 while MQTT Engine shows the members?
- Why does enabling Convert UDTs leave the old UDT instances in place?
- How do you rebuild the Engine namespace without touching the source tags?
- Why does the UNS Transmitter find the members when it reads the source provider directly?
- Which conversion boundary do you keep for the run to Azure?
- Is QoS 1 plus the History Store as reliable as Sparkplug store and forward?
- How many more messages does the JSON leg send than Sparkplug batching?
- Questions asked
Tag Count = 0 on the UNS Transmitter is a discovery fault on the Engine side of the pipeline, not a broker or Azure problem: MQTT Engine is still holding UDT instances and definitions created before Convert UDTs was enabled, and the UNS Transmitter in Cirrus Link modules v5.0.2 discovers only leaf tags under the path it monitors, [MQTT Engine]/UNS. Disable MQTT Engine, delete the Engine-side UDT instances and definitions, re-enable it, and confirm the namespace rebuilds as regular tags. That restores publishing. It does not change what the JSON leg is: QoS 1 and a History Store, without Sparkplug session management, sequence-based loss detection or metric batching.
Why does the UNS Transmitter show Tag Count = 0 while MQTT Engine shows the members? #
Tag Count = 0 means the transmitter discovered zero leaf tags under the path it monitors, so the fault sits on the Engine side of the pipeline and nothing has reached the enterprise bridge or the Azure consumer yet. Work from the count outward; tuning Azure, bridge rules or broker capacity before the count rises wastes the afternoon. Match what you see to the next check:
| What you observe | Where to look next |
|---|---|
| Engine shows UDT instances with members; UNS Transmitter reports Tag Count = 0 | Stale Engine-side UDT objects; do the rebuild below |
| Engine tags are regular leaf tags, but no unsAv1.0/ messages appear | UNS Transmitter tag path, client connection and topic settings; the stale-UDT fault is already cleared |
| JSON reaches the local broker but not Azure | Enterprise bridge and the Azure consumer; a local acknowledgment proves nothing downstream |
| Messages repeat after a reconnect | QoS 1 at-least-once delivery; the consumer must tolerate duplicates |
Why does enabling Convert UDTs leave the old UDT instances in place? #
Convert UDTs changes how the Sparkplug Transmitter encodes new metrics; it does not replace UDT objects that MQTT Engine already created, and those objects stay in the Engine provider until you delete them. If the source was originally published as UDTs, Engine built UDT instances plus a matching UDT definition in its own provider at that time, and turning conversion on later changes only what arrives next.
The UNS Transmitter monitors [MQTT Engine]/UNS and discovers leaf tags. A member held inside a UDT instance in that provider is not a leaf tag, so the discovered count is zero and nothing is published. These are the same Engine-side objects that make an MQTT Engine UDT instance show up as a folder, and the fix for that folder symptom points at the same cleanup. There is no configuration in Cirrus Link modules v5.0.2 that forces the transmitter to recurse into UDT instances: this is a discovery limit, not a missing setting, and the correction is a namespace rebuild.
How do you rebuild the Engine namespace without touching the source tags? #
The rebuild is a seven-step sequence: stop MQTT Engine, remove only the Engine-side UDT instances and definitions, restart it, and verify that the recreated tags are regular leaf tags before anything upstream is touched. Delete only inside the MQTT Engine tag provider: the source UDT definitions live in your default provider, and removing one there takes out the tag model your screens and PLC connections depend on.
- Confirm Convert UDTs is enabled on the Sparkplug Transmitter that actually serves the namespace under test.
- Disable MQTT Engine so it cannot recreate objects while you work.
- In the Engine tag provider, delete the UDT instances belonging to this data set.
- In the same provider, delete the matching UDT definitions.
- Enable MQTT Engine.
- Let the data model repopulate from the transmitter's birth and data messages.
- Verify the rebuilt namespace: the former UDT members must appear as regular tags, not as members of recreated instances, and the UNS Transmitter count must rise above zero before you troubleshoot JSON topics, the bridge or Azure.
If the rebuilt tags collide with leftover names from the old namespace, resolving duplicate tags in the MQTT Engine UNS namespace covers that cleanup. If Engine recreates UDT instances again, stop repeating the deletion: recheck that you changed the transmitter feeding this namespace, and that conversion is still enabled on it.
Why does the UNS Transmitter find the members when it reads the source provider directly? #
Reading the source provider directly works because the transmitter can traverse into UDT members there, but that behavior belongs to a different data path and must not be used to judge the Engine-based pipeline. On the source-only path there is no Sparkplug Transmitter and no MQTT Engine, so the transmitter sees the source provider's own structure and publishes the leaf members as JSON.
The two paths expose different tag structures to the same transmitter, which is exactly why the count can be zero on one and healthy on the other. The price of the source-only path is real: no Protobuf, so larger payloads; no birth and death management, so no automatic metric discovery and no stale quality on disconnect; no sequence numbers, so no built-in loss detection; and one message per tag change from the start.
Which conversion boundary do you keep for the run to Azure? #
Keep the corrected Engine path while the system is small, keep Sparkplug on the high-volume leg as it grows to thousands of tags, and choose the broker or source-only paths only where the table below says they fit.
| Path | Where Protobuf becomes JSON | UDT problem | Keep it when |
|---|---|---|---|
| A: Transmission to Engine to UNS Transmitter | In Ignition | Fixed by the rebuild above | You want Engine's decoded tag model locally and the load is modest |
| B: broker-side conversion with HiveMQ Data Hub | At the enterprise broker | Avoided; Data Hub works on Sparkplug metrics, not Ignition tag objects | The broker team owns decoding; confirm transformation, capacity and Sparkplug handling with the broker vendor first |
| C: UNS Transmitter on the source provider | Never; JSON from the source | Avoided; the direct provider read traverses UDT members | Simple deployment and direct JSON matter more than Sparkplug semantics, and change rates stay modest |
The decisions, case by case. Under about fifty tags today: run corrected Option A; the rebuild restores publishing and the JSON fan-out is trivial at that size. Growing to thousands of tags with sub-second changes: keep Sparkplug across the high-volume leg and decode to JSON at the cloud boundary, either inside Azure or at the broker as in Option B, so batching and session behavior survive until the point where Azure needs JSON. Option C is the right call only when its simplicity outweighs everything Sparkplug gives up.
For planning, treat the UNS Transmitter as a republisher that in practice carries hundreds to perhaps thousands of tags per client, while Sparkplug Transmitters carry tens of thousands to hundreds of thousands; these are field planning figures, not datasheet ratings, so verify against your own change rates.
Is QoS 1 plus the History Store as reliable as Sparkplug store and forward? #
No: QoS 1 plus the UNS Transmitter History Store is weaker than the Sparkplug Transmitter History Store with Primary Host ID, because nothing on the JSON path tracks session state or detects loss end to end. QoS 1 confirms delivery between the UNS Transmitter and its broker and may redeliver, so the consumer must process duplicates safely. The History Store buffers publications while that broker connection is down, and how MQTT store and forward backfills after a connection outage shows what that recovery looks like in practice.
Watch the acknowledgment boundary. If the local broker accepts a JSON message and the enterprise bridge or Azure then goes down, the transmitter regards its publish as complete; recovery depends on broker and bridge persistence, not on the transmitter. Sparkplug coordinates client-to-client state and session recovery with sequence numbers and a primary host; the UNS path is publish-only with no matching mechanism. In corrected Option A the Sparkplug store and forward still covers the shopfloor-to-broker leg, so the integrity gap is confined to the JSON leg.
How many more messages does the JSON leg send than Sparkplug batching? #
The JSON leg sends one MQTT message per tag change, while Sparkplug batches many metric updates into each data message, so the message count ratio equals the number of changes per publish interval. This follows from why Sparkplug B sends DBIRTH once and DDATA only on change: the birth message sets up the model once, and every data message carries a batch of changed metrics.
Worked example. Take 2,000 tags each changing once per second, and a Sparkplug publish interval of 500 ms. The JSON leg sends 2,000 tags times 1 change per second, so 2,000 MQTT messages per second. The Sparkplug leg sends 1 divided by 0.5 s, so 2 data messages per second, each carrying 2,000 divided by 2, about 1,000 metric updates. That is roughly 1,000 times fewer messages at the broker. At an illustrative 20 bytes per metric in Protobuf, a 1,000-metric payload is about 20 KB, well inside the 256 KB payload cap the Sparkplug specification sets.
The same arithmetic cuts the other way for quiet systems: 200 tags changing 5 times per second give 200 times 5, or 1,000 messages per second, while 5,000 tags changing once a minute give about 83 messages per second. So measure changes per second per client, never configured tag count, before you decide which path carries the volume.
Questions asked
Can you leave Convert UDTs off and let MQTT Engine rebuild the UDTs instead?
No. With conversion off, MQTT Engine recreates the data as UDT instances again and the UNS Transmitter returns to a zero count. The setting must stay enabled on the Sparkplug Transmitter that actually serves the namespace you are testing; a second transmitter can quietly undo the rebuild.
Does the UNS Transmitter keep publishing while MQTT Engine is disabled for the rebuild?
No. With MQTT Engine disabled there are no Engine tags to monitor, so the unsAv1.0/ output pauses. Schedule the rebuild in a window the Azure consumer tolerates, and expect the tag count to stay at zero until the data model repopulates after re-enabling.
Why does the rebuilt namespace contain regular tags instead of new UDT instances?
With Convert UDTs enabled, the Sparkplug Transmitter flattens each UDT member into an individual metric before publishing. MQTT Engine then receives plain metrics with structured names, so it creates regular leaf tags and has no UDT payload left to instantiate.
Do you repeat the rebuild when a new UDT is added at the source?
No. New UDT members arrive already converted and are created as leaf tags on first publish. Only the objects created while the source was still published as UDTs needed deleting; the rebuild is a one-time cleanup, not a maintenance routine.