FoundryNet / Error codes / MQTT Sparkplug NDATA before NBIRTH
MQTT error code

Sparkplug NDATA before NBIRTH: Data message received with no birth certificate

A Sparkplug host received an NDATA or DDATA for a node it has no NBIRTH for. Sparkplug metrics are aliased by number, and the alias-to-name map lives in the birth certificate, without it the payload is undecodable.

Start free MQTT → canonical

Diagnosis

When you hit this


Resolution

How to fix it

  1. Request a rebirth
    Publish an NCMD with the Node Control/Rebirth metric set true. A compliant edge node republishes its NBIRTH immediately.
  2. Retain birth certificates
    NBIRTH and DBIRTH must be published retained so any host connecting later can decode the stream.
  3. Treat a broker restart as a fleet rebirth
    After the broker loses retained state, every edge node needs a rebirth or the data is permanently opaque.

Normalization

What Forge does about it

A request that fails on some points and succeeds on others still normalizes. The tags that arrived resolve to canonical fields as usual; the ones that did not come back are listed in unresolved_tags and excluded from coverage_pct, so a partial read reports as partial instead of quietly looking complete.


Connect

Normalize MQTT telemetry

Forge's MQTT adapter reads JSON or raw-value payloads. It does not decode Sparkplug B protobuf payloads yet, so a Sparkplug B stream needs a bridge that republishes metrics as JSON.

One MCP endpoint serves every protocol adapter. 2,478 vendor mappings across 49 vendor packs, 1,031-field canonical schema.

# normalize MQTT telemetry (JSON payloads; Sparkplug B protobuf decode in progress)
claude mcp add --transport http forge https://mcp.foundrynet.io/mcp \
  --header 'Authorization: Bearer YOUR_FORGE_KEY'
✓ forge connected, 32 tools available

Related

Keep reading

Other MQTT codes: CONNACK 1 CONNACK 2 CONNACK 3 CONNACK 5 Sparkplug seq out of order

Equipment that speaks MQTT: MiR (Mobile Industrial Robots) Chemical process Food & beverage process Pharma process (GMP) OTTO Motors Geek+ (Geekplus) Locus Robotics Omron AMR (LD/HD) Trumpf

MQTT protocol hub

Other protocols: Modbus OPC UA EtherNet/IP PROFINET / S7 BACnet/IP J1939 (CAN) MTConnect ROS 2 (DDS) MAVLink HTTP / REST CSV ingest

All error codes · All OEMs · All protocols

Why does a cross-vendor canonical data model matter? The Machine Agent breaks it down weekly. Read it →
Get the thesis behind this infrastructure: The Machine Agent, weekly.