Troubleshooting
Why MQTT Engine writes fail with Bad_NodeIdUnknown
Short answer
Bad_NodeIdUnknown on an MQTT Engine tag write is an OPC UA namespace lookup failure at the server executing the write — the node id is not in its address space. It is not a VPN fault: with good edge tags and a live Engine tag, fix the write target's node path, not the transport.
On this page
- Is Bad_NodeIdUnknown an MQTT or VPN error?
- Where does the four-hop chain break?
- Do good edge tags and working memory tags clear the transport?
- What does Error_Configuration on the central OPC tags mean?
- How do you prove the chain with one controlled toggle?
- Why does a write to a managed tag still fail?
- What is the fix for each case?
- Questions asked
Bad_NodeIdUnknown on a write to an MQTT Engine tag is not an MQTT or VPN failure. It is an OPC UA service result: the server that executed the write looked up a node id that is not present in its address space, so the fault sits at the write target — four hops away from the PLC. In the reported deployment — Ignition 8.1.7 at both ends, MQTT Engine and MQTT Distributor 4.0.8 on the central server, MQTT Transmission 4.0.8 at the edge, the PLC reached through an Omron FINS/TCP driver behind OPC UA — the edge tags had good quality and the write still failed. That combination points at a stale or edge-local node path, not at the tunnel.
Is Bad_NodeIdUnknown an MQTT or VPN error? #
No — it is an OPC UA namespace lookup failure. The server that ran the operation reports that the node id it was given does not exist in its address space, so the error names the write target's namespace, never the MQTT transport or the VPN carrying it.
The wording in the log is one sentence: "The node id refers to a node that does not exist in the server address space." MQTT itself has no node ids — it moves published payloads between client and broker — so no broker, route or tunnel condition can produce this code. A genuine VPN fault looks completely different: no TCP session, Transmission disconnected, no client visible at the Distributor, Engine tags gone stale. When that is what you see, trace an edge gateway MQTT connection failure hop by hop. When you see Bad_NodeIdUnknown, leave the VPN alone and go to the write target.
Where does the four-hop chain break? #
At the fourth hop, the write target — provided hops one through three pass. Read one thing at each hop, in order, and the first failing reading is your fault location; in the reported case every reading up to the Engine tag passed.
| Hop | Segment | Reading to take | Pass result | Failure points to |
|---|---|---|---|---|
| 1 | PLC to edge | Source-tag quality, plus one direct write and readback at the edge | Good quality, value reads back | Driver, device, route or PLC |
| 2 | Edge to Distributor | Transmission connection state and message activity | Connected, activity follows a source change | VPN route, endpoint address, port or broker session |
| 3 | Distributor to Engine | Engine client session and inbound message activity | Messages arrive, counts advance | Subscription or module configuration |
| 4 | Engine write target | Browsed managed-tag path versus the path in the failed write | Path exists at the provider root and updates | Stale path, missing managed node, or an edge-local OPC node addressed centrally |
The failure text itself names an Engine provider tag, so the write reached the central server and was logged there. One caution at hop three: a connected-looking status is not proof of flowing data, which is why MQTT Engine shows online status after an edge node drops — use inbound message activity, not the status light.
Do good edge tags and working memory tags clear the transport? #
They clear the parts they touch: good-quality edge tags that accept direct writes prove hop one, a live-updating Engine managed tag proves hops two and three, and memory tags prove only that the central tag system executes — none of them validates any OPC namespace.
Managed tags are created from received MQTT data and behave like memory tags; by the time they exist under the Engine provider they carry no OPC knowledge. The reported symptom set therefore separates cleanly: edge tags good with working direct writes, memory tags working centrally, every central OPC tag at Error_Configuration. Inbound MQTT delivery is fine; the central OPC item paths are broken. Test each boundary on its own — a direct edge write tests the driver, an advancing managed-tag timestamp tests the MQTT chain, a browsed central item path tests the central namespace — because passing one proves nothing about the next.
What does Error_Configuration on the central OPC tags mean? #
That the central OPC server cannot resolve the item path those tags carry — and in this architecture a tag that references an edge-local OPC node can never resolve, because that node exists only in the edge server's address space.
Error_Configuration is tag-level: the definition is unusable before any read is attempted, whether the provider is wrong, the item path is malformed, or the node simply is not there. The decision is between two clean designs. Either read values from the Engine managed tag that the edge publication already creates, or give the central server its own OPC connection to the PLC and browse a current item path into the tag. Copying an edge-local node id into a central OPC tag produces exactly this pairing of symptoms, and no amount of MQTT-side repair will fix it.
How do you prove the chain with one controlled toggle? #
Toggle one permitted source tag at the edge and watch four readings advance in order — Transmission activity, Distributor inbound activity, Engine inbound activity, then the managed tag's timestamp; the first one that fails to move is the fault.
Write only to a tag the process permits you to command; a valve command tag is not a test point.
- Record the configured Distributor address and port, plus the connection state of Transmission, the Distributor client list, and Engine.
- Toggle one permitted source tag at the edge and read the value back there.
- Confirm Transmission message activity changed, then Distributor inbound activity, then Engine inbound activity.
- Read the managed tag's value, quality and timestamp, and confirm the timestamp advanced.
- Repeat the failed write from the central side and read the new failure text, if any.
The reported log gives a worked check with real numbers. The logged value was [false, Good, Fri Jul 30 12:13:50 SGT 2021 (1627618430116)], and its timestamp survives arithmetic: 1,627,618,430,116 ms ÷ 1,000 = 1,627,618,430.116 s since 1970-01-01. Dividing by 86,400 s per day gives 18,838 days with 15,230.116 s left over. Check the days independently: 51 years × 365 d = 18,615 d, plus 13 leap days between 1972 and 2020, is 18,628 d to 2021-01-01; add 181 d for January through June and 29 more to reach July 30, which is 18,838 d.
The leftover 15,230 s is 4 h 13 min 50 s UTC, and SGT at UTC+8 makes it 12:13:50 — the exact clock time in the log. The writer therefore held a Good-quality value with a coherent timestamp, and the only thing that failed was node resolution. That result sends you to hop four, not to the VPN.
Why does a write to a managed tag still fail? #
Because the path in the write and the path in the provider are no longer the same node: a managed tag deleted and recreated, a folder renamed at the edge, or a binding still holding a copied path all leave the writer addressing a node that does not exist.
Browse the MQTT Engine provider from its root and compare every folder and character against [MQTT Engine]Edge Nodes/PLANT/DIGITAL/AREA/VALVE/V15; one renamed folder fails exactly this way. Then find the writer — a script, a binding, a derived tag or an event routine issuing the false — and repoint it at the current browsed path. When the managed tags themselves are stale or missing, the documented resync is to disable the MQTT Engine module, delete its tags, re-enable it, and if the tags do not return, refresh the Edge Node at Transmission. And if the central write is supposed to command the PLC, know that the Engine module blocks device tag writes by default: the Allow Outbound Tag Writes setting has to permit them before anything leaves the managed tag toward the controller.
What is the fix for each case? #
Match the failing hop to its fix: transport faults get route and port corrections, stale managed tags get the resync, malformed central OPC tags get repointed, and write-back gets the outbound setting — each verified with one read.
- No TCP session, Transmission disconnected: correct the VPN route, endpoint address or port, then rerun the toggle test. This fault never produces Bad_NodeIdUnknown.
- Managed tag missing or stale: disable MQTT Engine, delete its tags, re-enable it, and refresh the Edge Node at Transmission if the tags do not return.
- Central OPC tags at Error_Configuration: point them at the Engine managed tag, or give the central server its own OPC connection and browse a current item path.
- Central write that must reach the PLC: allow device tag writes, confirm the destination edge tag accepts writes, command one Boolean transition, and read it back at the controller.
Your decision point is always the first failing reading in the toggle test: everything before it is proven, and nothing after it has been tested yet.
Questions asked
Does MQTT work through a TeamViewer VPN?
Yes, as long as the tunnel carries TCP to the Distributor's address and port. A VPN problem shows up as a Transmission session that never connects or keeps dropping, and an Engine tag that goes stale — never as Bad_NodeIdUnknown, which is an OPC UA node lookup result. Correct the route and port only when the session state is actually down.
How is Bad_Unsupported different from Bad_NodeIdUnknown?
Bad_Unsupported appears in MQTT Engine when a dynamically structured JSON payload conflicts with the tag hierarchy the module first created, so incoming data no longer fits the existing tags. Bad_NodeIdUnknown means the node id simply is not in the server address space at write time. One is a tag structure conflict, the other a missing node.
Why would MQTT Engine tags toggle between stale and healthy?
Two documented causes: colliding MQTT Client IDs, or colliding Sparkplug Edge Node Descriptors. Two sessions claiming the same identity keep displacing each other, so the Engine tag flips between live and stale even though each individual message is good. Make every client ID and every Edge Node Descriptor unique across the system.
Can a central script write through to the PLC over this chain?
Only if the outbound route is configured. The MQTT Engine module blocks device tag writes by default, so the Allow Outbound Tag Writes setting must permit them, and the destination edge tag must accept writes. Without that, a central write to the managed tag updates the managed tag and stops there, never reaching the controller.