IMD SolutionComputing LibraryShop main store

Troubleshooting

Why a Sparkplug integer array is missing in MQTT.fx

Edge computing and IIoT Published 5 min read

Short answer

The array is almost certainly on the wire: MQTT Transmission and MQTT Engine support Integer Arrays from version 4.0.6, while the MQTT.fx parser does not decode Sparkplug arrays. Verify the payload in the MQTT Engine tag provider on the same MQTT server, and treat MQTT.fx as a wiring check only.

On this page
  1. The parser is the boundary, not the publisher
  2. The documented version boundary
  3. Verify the array end to end
  4. A worked example
  5. Decide from the result
  6. Where MQTT.fx still earns its place
  7. Questions asked

If an Integer Array vanishes when you inspect a Sparkplug topic in MQTT.fx, the payload is almost certainly fine. MQTT Transmission and MQTT Engine have supported Integer Arrays since version 4.0.6, while the parser in MQTT.fx does not decode Sparkplug array metrics, so the tool receives the message and shows everything except the array. The acceptance test for the array is the MQTT Engine tag provider on the same MQTT server, not the MQTT.fx window. What follows is the version boundary, the end-to-end check and the decision for each outcome.

The parser is the boundary, not the publisher #

Sparkplug B is not JSON on the wire. The Sparkplug 3.0.0 specification defines the topic namespace and a protobuf-encoded binary payload, and it requires a compliant implementation to encode and decode metrics whose value is either a single value or an array of a defined type. The MQTT server in the middle forwards those bytes untouched — any MQTT 3.1.1-compliant broker carries Sparkplug B — because payload support lives in the clients at the two ends, the distinction the article MQTT broker support is not Sparkplug support works through.

A client with no Sparkplug decoding shows the message as unreadable bytes, the effect covered in Why Ignition Edge MQTT payloads look like unreadable bytes. MQTT.fx sits between those cases: its parser decodes part of the payload, but array support has not been added to it. The message arrives, the scalar metrics render, and the array is silently absent from the parsed view.

The documented version boundary #

Integer Arrays are supported in MQTT Transmission and MQTT Engine from version 4.0.6 onward. That one fact splits the fault space in two: at or past the boundary the modules carry the array and any absence downstream is a display problem; below it the modules themselves cannot carry the array and no client will show it. Each component's documented behavior fixes its role:

Component Documented behavior Decision
MQTT Transmission, 4.0.6 or later Publishes Integer Array metrics in the Sparkplug payload Keep it as the publisher
MQTT Engine, 4.0.6 or later Decodes Integer Array metrics into its tag provider Make it the acceptance test
The MQTT server Forwards the payload bytes without decoding them Not where this fault lives
The MQTT.fx parser Sparkplug array support has not been added Never use its parsed view to accept an array

Verify the array end to end #

Run this check against the live publisher; one data message is enough.

  1. Confirm both MQTT modules sit at or past the boundary version in the table. An older Transmission or Engine build drops the array before any display question arises, so settle this first.
  2. Point MQTT Engine at the same MQTT server the publisher uses. For a standard Sparkplug deployment the subscription filter spBv1.0/# covers every group and node on that server.
  3. Make the node publish a data message carrying a known Integer Array beside at least one scalar metric — for example a six-element setpoint array and one tank level.
  4. Open the MQTT Engine tag provider and locate the node's tags; the array should be present as one array tag holding every value.
  5. Watch the same topic in MQTT.fx in parallel. It confirms the message lands on the right topic at the right QoS; note which metrics its parsed view shows.
  6. Compare the two views and apply the decision in the next section.

A worked example #

Take a hypothetical but typical message: one node publishes three metrics — a tank level (scalar), a pump state (scalar) and a setpoint list as an Integer Array with 6 elements — with both modules at the boundary version and Engine subscribed to the publisher's server.

MQTT.fx shows the message with 2 of the 3 metrics parsed. MQTT Engine shows 3 of 3 metrics, and the setpoint tag holds 6 of the 6 values. The arithmetic: 3 published − 2 visible in MQTT.fx = 1 missing, exactly the 1 array metric in the message, while Engine loses 3 − 3 = 0. Publisher, server and subscription are all healthy; the missing count is fully explained by the parser, and the call closes as an MQTT.fx display limitation.

Decide from the result #

  • Array in the Engine tag provider, absent in MQTT.fx. The end-to-end path is proven: publisher, server and subscription all work and the fault is the MQTT.fx parser. Close it as a display limitation and use the tag provider for every future check of this metric. This is the expected outcome with both modules at the boundary version.
  • Array absent from the Engine tag provider too. MQTT.fx is exonerated as well; the loss is upstream. Check in order: a module version below the boundary, an Engine subscription that does not cover the publisher's group, an Engine connection that is not the same server, and finally the metric definition on the Transmission side — confirm the tag is actually configured as an array and included among the tags the node publishes. With versions, subscription and connection verified and the array still missing, the publisher is dropping it before the wire; fix it there.
  • No MQTT Engine available for the test. Use a client whose documentation states that it decodes Sparkplug arrays, or stand up a bench publisher configured for Sparkplug JSON output in MQTT Transmission so a generic client can read the values as text. Keep the production publisher on the binary encoding — the wire format is a system-wide contract, not a viewing convenience.

Where MQTT.fx still earns its place #

Nothing here retires the tool. MQTT.fx remains a quick wiring check: it proves the broker connection, the topic filter, the QoS and the fact that messages arrive at all, and it renders scalar metrics correctly. Treat its parsed metric list as incomplete whenever arrays may be in the payload, and route array acceptance through the MQTT Engine tag provider. Once the array is confirmed there, the MQTT.fx view can be ignored for that metric for good.

Questions asked

Do other Sparkplug array types disappear in MQTT.fx the same way?

Yes. The documented boundary names Integer Arrays, but every array type travels in the same protobuf structure and the MQTT.fx parser contains no array decoding at all, so Float, Double, Boolean and String arrays vanish from its parsed view identically. Run the same tag-provider check for each array type you publish.

Can a setting or a newer MQTT.fx release make the array visible?

No setting in MQTT.fx switches array decoding on: its Sparkplug parser does not decode array metrics, so a configuration change cannot surface them. Check the tool's release notes before assuming a newer build adds the support, and read the array from the MQTT Engine tag provider in the meantime, where the decoding already exists.

What happens to the array on module versions below the supported release?

It is a real fault, not a display problem. A Transmission or Engine build older than the supported release cannot carry Integer Array metrics, so the values are dropped before any client sees them. Upgrade both modules to a release at or past the boundary, republish, and repeat the tag-provider check before investigating anything else.

Keep reading

  • Troubleshooting

    Why Ignition Edge MQTT payloads look like unreadable bytes

    The unreadable characters are Sparkplug B's Protocol Buffers encoding rendered as text, which means the broker delivered the message intact. Fix the subscriber: select the Sparkplug decoder in MQTT.fx or use a Sparkplug-capable release such as MQTT Explorer v0.4.0-beta4. Leave the Edge Transmission format and the broker unchanged.

    Edge computing and IIoT

  • Troubleshooting

    Why MQTT Engine shows online status after an edge node drops

    An Info/Online tag that stays true with Good quality is not proof the edge node is alive: Engine's online state comes from the node's Sparkplug death certificate, and earlier Engine versions marked tags stale only on Engine shutdown. Read Info/Online, tag quality and Store & Forward stored metrics as three separate indicators, retest on Engine 4.0.8 with Ignition 8.0.16 or later, and compare against a node that reports correctly before escalating.

    Edge computing and IIoT

  • Troubleshooting

    Why an MQTT Engine UDT instance shows up as a folder

    Stop MQTT Transmission on the Edge gateway, delete the affected tags and UDT definitions from MQTT Engine, re-enable Transmission and force the refresh; Engine then rebuilds the objects as UDT instances. On the 4.0.10 builds, upgrade both MQTT modules to 4.0.16 afterwards and restart the Ignition service to clear leaked TransmissionClient threads.

    Edge computing and IIoT