IMD SolutionComputing LibraryShop main store

Troubleshooting

Why Ignition rejects a Sparkplug DBIRTH with a Rebirth request

Edge computing and IIoT Published 6 min read

Short answer

A Rebirth request after a DBIRTH is a state rejection, not a transport failure. Working NBIRTH and NDATA traffic proves the MQTT link is fine; the device birth itself failed on identity, birth order, sequence number or payload field spelling. The confirmed field-level defect is the historical flag emitted as isHistorical instead of the Sparkplug B wire field is_historical.

On this page
  1. What a Rebirth request actually means
  2. Wrong fixes and why they fail
  3. The three checks in order
  4. Example: verifying DBIRTH order with a seq counter
  5. Build one clean DBIRTH, then add metrics
  6. Confirming real acceptance
  7. Questions asked

A Rebirth request that follows your DBIRTH means Ignition could not fit the device birth into its current Sparkplug state — it is not a transport failure. If your NBIRTH and NDATA traffic reaches Ignition and the node tags come online, the broker, TLS and topic namespace are all working. The rejection sits in the device birth itself: its identity, its position in the birth sequence, its seq number, or a payload field that does not match the Sparkplug B wire schema. The one field-level defect confirmed end to end in this situation is the historical flag: a wrapper node emitting isHistorical gets rejected, while the schema field is_historical is accepted. Work through identity, order and payload in that order and the DBIRTH goes in on the first clean attempt.

What a Rebirth request actually means #

Sparkplug B is a state machine, not a fire-and-forget format. An NBIRTH establishes the edge node and its metric model; a DBIRTH establishes a device under that node; NDATA and DDATA update models that already exist. When Ignition receives a device birth it cannot place — wrong device ID, unknown parent node, sequence number that does not continue the session, or a payload field the schema does not define — the safe reaction is to ask for a full rebirth and rebuild state from scratch rather than apply data to a half-formed model.

That is why the request feels misleading: your connection is demonstrably alive, because the Rebirth itself arrived over it. Treat the Rebirth as a specific complaint about one message, and narrow which stage failed.

Wrong fixes and why they fail #

Before touching anything, rule out the three repairs that do not work:

  • Changing seq repeatedly. A valid sequence number cannot repair an invalid device identity or a malformed payload field. Correlate the rejected DBIRTH with the seq of the preceding accepted NBIRTH before blaming the counter.
  • Editing the topic blindly. A syntactically valid topic can still disagree with the active session — a group ID from one config path, whitespace in a device ID, an extra or missing segment. Compare every segment of the rejected topic against the accepted NBIRTH topic.
  • Resending the DBIRTH alone. A device birth depends on an established node birth in the same session. Repeating the dependent message preserves the same state error; rebuild from NBIRTH.

The three checks in order #

1. Identity. The group ID and edge-node ID in the DBIRTH topic must exactly match the node Ignition already accepted. Confirm the device segment appears once, with no empty part and no case or spacing difference introduced by the flow configuration.

2. Birth order and seq. NBIRTH must precede DBIRTH within one connection, and each publication carries the next seq value for the session. If you are assembling messages manually or restarting single nodes mid-session, the publisher and Ignition can hold different views of where the sequence stands — test from a clean connection boundary every time.

3. Payload schema. Inspect every metric as a definition: name, alias, type and value. Duplicate names, unstable aliases, missing types, and above all misspelled wire fields trigger rejection. The documented case: a Node-RED Sparkplug device node exposed the historical flag as isHistorical; Ignition rejected it; replacing it with the schema's is_historical was accepted. A debug panel showing a correct-looking object proves nothing about the encoded bytes — capture the payload at the broker and decode it with the receiving system's schema. How the resulting tags organize in Ignition is covered in the guide on Sparkplug B DBIRTH tag folders in Ignition.

Example: verifying DBIRTH order with a seq counter #

This is a hypothetical worked case built on the state rules above, using a single group and device.

Inputs:

  • Group ID Plant1, edge-node ID Line3, device ID Filler1 (your own configuration values — anything consistent works).
  • Session seq starts per the Sparkplug B state rules: NBIRTH is the first publication of the new session, DBIRTH the next. Take seq = 1 for NBIRTH and seq = 2 for DBIRTH in a fresh session.
  • One metric, FillCount, type Int32, with the historical flag needed, so is_historical must be present.

The rule in words: NBIRTH must be accepted first and establish the node; the DBIRTH must then arrive as the very next publication, with a seq value one greater than the last accepted one, and every payload field spelled as the wire schema defines it.

Arithmetic on the counter:

  • Accepted NBIRTH carries seq = 1.
  • The subscriber's expected next seq = 1 + 1 = 2.
  • Your DBIRTH arrives with seq = 2. Expected (2) equals received (2), so the order and counter check passes.
  • If instead the DBIRTH arrived with seq = 1 again, the expected 2 would not match the received 1, and the sequence stage fails regardless of how correct the payload is.

Result: with identity matched, seq = 2 following the accepted seq = 1 NBIRTH, and the flag written as is_historical, Ignition installs the device and creates the FillCount tag without a Rebirth.

Decision: if the counter arithmetic in your own capture shows the same off-by-one or a reused value, fix the sequence stage; if the counter passes and rejection persists, move the investigation entirely to payload field names, starting with isHistorical versus is_historical.

Build one clean DBIRTH, then add metrics #

Stop periodic data so background DDATA cannot interleave with the test. Open a fresh connection with one stable identity, record the exact topic strings the flow will publish, then:

  1. Publish a minimal NBIRTH and wait until Ignition shows the node online with no Rebirth.
  2. Build a minimal DBIRTH: one device, one plainly named metric, one explicit type. Omit the historical flag entirely on the first attempt when you do not need it.
  3. Publish the device birth once and capture both the topic and the encoded payload at the broker.
  4. If it is accepted, add metrics and optional properties — including is_historical when required — in small groups, retesting after each addition so the first failing addition names the bad field.
  5. Only after the birth is accepted, enable DDATA and confirm it updates the existing metric instead of duplicating it or leaving the value stale.

If a manually assembled minimal payload is accepted while your device node's payload is rejected with identical identity and ordering, decode both and diff the fields; file the difference against the node, not against Ignition.

Confirming real acceptance #

Absence of a visible error is not the finish line. Acceptance means: the device appears only after the DBIRTH, with the metric and its intended type; no Rebirth follows; one DDATA changes the existing tag value; and one reconnect rebuilds the same ordered birth sequence without manual intervention. Keep both the failing and passing captures — the decisive evidence is the first differing field or topic segment between them.

Questions asked

Does a Rebirth request mean my MQTT connection is broken?

No. A Rebirth is a Sparkplug control message the subscriber sends over the same working connection. If your NBIRTH and NDATA publications reach Ignition and its tags update, transport and broker are fine. The Rebirth means Ignition could not place the DBIRTH into the state it expects: check the topic identity against the accepted node birth, the sequence number, and every metric field name in the payload.

What is the correct name for the historical flag in Sparkplug B?

The wire field is is_historical, with an underscore. Some Node-RED wrapper nodes expose a JavaScript-style property isHistorical in the flow object, and if the encoder passes it through unchanged, the receiver sees an undefined field and rejects the birth. Test with the underscore spelling omitted first, then add is_historical explicitly and confirm the device birth is still accepted.

Can I just resend the DBIRTH with a higher sequence number?

Not as a fix. Repeating or incrementing the DBIRTH preserves whatever state error caused the first rejection, and a device birth that arrives without an accepted node birth for that exact group and edge-node ID is still invalid. Publish a fresh NBIRTH, confirm the node comes online without a Rebirth, then publish the device birth once as the next message in the same session.

How do I prove which field Ignition rejected?

Capture the encoded bytes at the broker and decode them with the same Sparkplug B schema Ignition uses; a Node-RED debug panel shows the JavaScript object before encoding, not what went on the wire. Compare a passing minimal birth with the failing one field by field. The first differing topic segment, sequence value or payload field is the cause.

Keep reading

  • How-to

    Sending Sparkplug B device commands from Node-RED

    Build each Sparkplug B DCMD in Node-RED from the alias map in the device's latest DBIRTH, one metrics entry per value, and never hard-code an alias. Keep the sequence counter on its documented progression, zero through 255 with wrap-around, unless a captured command proves the receiver accepts the minus-one convention.

    Edge computing and IIoT

  • Troubleshooting

    Why a broker rejects your Sparkplug client over its STATE will

    The broker refuses the CONNECT because the client's MQTT Last Will is declared on a STATE topic its ACL does not authorize for publish, and wills are checked at connect time before any PUBLISH. Grant publish rights on that one STATE topic or place an intermediate broker between client and cloud; changing subscriptions does nothing.

    Edge computing and IIoT

  • Troubleshooting

    Why buffered Sparkplug B data is rejected after reconnect

    Replayed samples are dropped because the MQTT Publisher component in System Platform v2023 P01 sends them without the per-metric is_historical = true flag the Eclipse Sparkplug B specification defines for late data, so the broker treats old timestamps as suspect. No setting in that component sets the flag; keep MQTT for live values and recover the outage window through a separate backfill path.

    Edge computing and IIoT