IMD SolutionComputing LibraryShop main store

Troubleshooting

MQTT Transmission publishes null DDATA on Bad_NodeIdUnknown

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

Short answer

MQTT Transmission has no setting that filters error-state tags. Ignition refreshes the bad tag's timestamp on its retry loop, that timestamp change is a qualified-value change, and Transmission publishes each one: about 6 null DDATA per minute per tag until the node or Item Path is fixed.

On this page
  1. Why does a dead OPC tag publish every 10 seconds?
  2. How do you confirm the timestamp is the trigger?
  3. How many null messages does one tag cost you?
  4. Why is the node unknown in the first place?
  5. Can Transmission filter only error-state tags?
  6. How does a curated tag stop the churn?
  7. What is the decision for each case?
  8. Questions asked

MQTT Transmission has no setting, and no supported script hook we could identify in version 5.0.4, that suppresses a metric because the source tag is in an error state. Each null DDATA is by design: Ignition refreshes the failed tag's timestamp on its retry loop, and Transmission publishes any qualified-value change. The fix is at the source: restore the OPC UA node or correct the Item Path, or publish a curated tag that changes only on good-quality samples.

Why does a dead OPC tag publish every 10 seconds? #

Because the timestamp of the failing tag changes about every 10 seconds, and Transmission treats that as a real change. A tag's qualified value has three parts: the value, the quality, and the timestamp. When the OPC UA node disappears, Ignition reports Bad_NodeIdUnknown, keeps value and quality constant, and refreshes the timestamp on each failed-item retry. Each refresh is a qualified-value change, so Transmission includes the metric in a DDATA with is_null=true and quality 0xC0000300. The broker is not requesting the data; the retry loop is producing it.

This is the same qualified-value change rule that explains other surprising publishes. The write-path counterpart is covered in why MQTT Engine writes fail with Bad_NodeIdUnknown, which is about the same unknown-node code arriving on a write instead of a subscription.

How do you confirm the timestamp is the trigger? #

Record the tag's three qualified-value fields across at least two retry intervals and match them to decoded DDATA at the broker. The steps:

  1. Open the failing Ignition tag and write down its value, quality code, and timestamp.
  2. Wait through at least two observed retry intervals, about 20 seconds in the reported case.
  3. Record the same three fields again and compare them field by field.
  4. Decode the DDATA payloads at the broker and match each message to a tag timestamp change.

If value and quality are constant and only the timestamp moves, the timestamp is your trigger. If nothing on the tag changes but messages still arrive, check the transmitter diagnostics before touching the OPC side.

How many null messages does one tag cost you? #

One affected tag produces about 60 / 10 = 6 null DDATA per minute. That count assumes the retry cadence stays at the observed 10 seconds and that the broker sees every message. With M affected tags and T transmitters that all subscribe to every tag, the churn is approximately 6 x M x T messages per minute; two tags across three transmitters is about 36 per minute. Broker-side counts can run lower if Transmission groups several metrics into one payload, so measure your own broker for the exact figure.

Why is the node unknown in the first place? #

Bad_NodeIdUnknown means the OPC UA server does not recognize the node identifier in the tag's Item Path, so the problem lives in the item request, not in Ethernet or MQTT. Check the other nodes on the same server first: if they keep updating, the session and the network are fine and one item is the fault. Then:

  • Compare the tag's Item Path with the node the server currently exposes. A rename or a namespace change on the server side breaks the identifier.
  • If the server was mid-update, watch whether the node returns and whether the existing subscription recovers on its own; the condition is then transient.
  • If the node was deleted upstream, the condition persists until the node or the Item Path is restored.
  • Reproduce the mechanism deliberately by pointing a working tag's Item Path at a nonexistent node: you should see the same null DDATA cadence.

The Item Path side of this, after a bulk find-and-replace goes wrong, is worked through in resolving Ignition OPC item path bad quality after find replace.

Can Transmission filter only error-state tags? #

No. No Transmission-side setting or supported script for that filter is identified for module version 5.0.4, and a quality-only filter would need a documented module feature. The module's contract is simple: publish on qualified-value change. Ask the module vendor through its official support channel if you want that capability added or confirmed for a specific version; do not assume an undocumented setting exists. The general behavior of the same status code on a null read is also covered in resolving Ignition OPC-DA Bad_NodeIdUnknown null values.

How does a curated tag stop the churn? #

Separate acquisition from publication. Leave the raw OPC tag subscribed so the retry loop can recover it, but point the transmitter at a publication tag you write yourself, and write it only from good-quality samples. On the transition into bad quality, change a separate validity indicator once; never rewrite it on every retry, because each rewrite carries a new timestamp and recreates the loop. The pattern, as pseudocode:

on raw qualified-value change:
 if raw quality is good:
 write publication value only if its value must change
 if validity is not true:
 write validity = true
 else:
 if validity is not false:
 write validity = false

This is an architectural pattern to implement with your platform's documented tag event features, tested against your Transmission and broker versions before deployment. The cost of skipping the validity flag is real: a consumer holding the last good value with no indicator reads stale process data as current. Publishing the one-time validity transition keeps the fault visible at the consumer while cutting the 10-second repeat to zero.

For the retry behavior on the acquisition side, the documented options are covered in OPC bad quality retry configuration guide.

What is the decision for each case? #

If the node should exist, fix the Item Path or restore the node: this ends the error, returns normal values, and is the correct branch. If the outage is transient and short, do nothing: the churn is bounded by the outage duration and self-clears. If the node is gone for good but the tag must stay for recovery, publish through the curated tag with the one-time validity transition, and keep the raw tag subscribed for automatic recovery. Do not disable or delete the tag as a suppression method: it prevents recovery and, if you keep it disabled, it still fails the operating goal of keeping the tag in the namespace. Safety note: if any downstream consumer uses this tag in an interlock or operator decision, treat a bad-quality state as invalid data at the consumer, not as a held last value.

Questions asked

What does quality 0xC0000300 mean on a Sparkplug B metric?

It is the OPC UA status code Bad_NodeIdUnknown carried onto the Sparkplug metric. The server does not recognize the node identifier the client requested, so the value is null and the quality code is bad. It points at the Item Path or the node, not at the broker or the transmitter.

Does the 10 second retry interval have a setting in Ignition?

No documented setting for that retry interval is identified in Ignition 8.3.7 or MQTT Transmission 5.0.4. Treat the roughly 10 second cadence as an observed property of the failed-item retry loop, verify it on your own system with a packet capture, and do not build logic that depends on the exact number.

Why does each transmitter multiply the null DDATA count?

Each transmitter that includes the tag in its tag list publishes the metric independently when its qualified value changes. With M affected tags and T transmitters that all carry every tag, the churn is roughly 6 times M times T messages per minute while the outage lasts.

Is holding the last good value without a validity flag acceptable?

No. A consumer reading a held value with no validity indicator sees stale process data as current. Publish the one-time validity transition alongside the held value so downstream logic can decide what to do with the data during the outage.

Can I write the validity flag from a tag event script on value change only?

You can, but keep the condition on quality, not on the qualified value. A script bound to the qualified value fires on the timestamp refresh too and recreates the loop. Evaluate the quality code and write the validity tag only when it crosses between good and bad.

Keep reading

  • Troubleshooting

    Backfill late and out-of-order data into Canary collectors

    Canary's SQL and MQTT collectors both insert historical samples that arrive out of time order, so late data after an outage lands at its correct timestamp; only the OPC DA and OPC UA collectors refuse inserts. Confirm a backfill by opening the affected window in the historian files and looking for samples marked Added with Good quality, and set the MQTT Collector's Reordering Queue Size above its default 0 when messages arrive out of sequence.

    Edge computing and IIoT

  • Comparison

    Canary historian export paths: MQTT publisher or API read

    Canary gives you two confirmed ways to move historian data out: the Publisher service, which pushes real-time values to MQTT or Kafka as Sparkplug B or JSON, and the Read API, which an external client calls to pull stored data. An outbound OPC UA server is not a confirmed option.

    Edge computing and IIoT

  • Explainer

    Exporting Sparkplug B out of Geo SCADA to a historian

    No modified DDK driver will push Sparkplug B out of Geo SCADA, because the driver layer is pull-only in the outbound direction. Build the publisher on the Client API Sample DataFeeder pattern, which watches about 100,000 points per instance; for millions of points, use HSI or a database-level connector.

    Edge computing and IIoT

Write PI bad quality as a system digital state in UFL