FoundryNet / Error codes / OPC UA BadConnectionClosed
OPC UA error code

BadConnectionClosed (0x80AE0000) — The secure channel was closed

The transport underneath the session went away. The session may still be recoverable on a new channel, which is why a client that treats this as fatal reconnects more often than it needs to.

Start free OPC UA → canonical

Diagnosis

When you hit this


Resolution

How to fix it

  1. Set keep-alive below the session timeout
    A common working ratio is keep-alive at roughly a quarter of the session timeout. Defaults from two different SDKs frequently violate this.
  2. Attempt session reactivation first
    The UA stack can reactivate an existing session on a fresh secure channel, which is far cheaper than a full reconnect and preserves subscriptions.
  3. Look for a middlebox
    If the drop interval is suspiciously regular — exactly 30 or 60 minutes — a firewall idle timer is closing it, not the server.

Normalization

What Forge does about it

This is a transport failure, so there is nothing for Forge to normalize: the reading never arrives. What Forge does is refuse to let the gap look like good data. The read-time dropout check flags a field that fell to zero and recovered as a communication glitch rather than a real measurement, and the stuck-sensor check fires when a value repeats for 20 consecutive readings — which is what a cached or last-known value looks like after a link drops. Forge does not retry or reconnect for you; that is your client's or your gateway's job.


Connect

Normalize OPC UA telemetry

One MCP endpoint serves every protocol adapter. 16,908 curated mappings, 366 canonical fields.

# normalize telemetry from OPC UA — and 13 other protocols
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 OPC UA codes: BadNodeIdUnknown BadTimeout BadSecurityChecksFailed BadUserAccessDenied BadSubscriptionIdInvalid

Equipment that speaks OPC UA: ABB Robotics DMG Mori Fanuc Heidenhain KUKA Mazak Okuma Siemens Sinumerik Universal Robots Chemical process

OPC UA protocol hub

Other protocols: Modbus MQTT / Sparkplug B FANUC FOCAS EtherNet/IP PROFINET / S7 BACnet/IP J1939 (CAN) MTConnect ROS 2 (DDS) SNMP MAVLink HTTP / REST CSV ingest

All error codes · All OEMs · All protocols

Industrial AI fails at the data layer. The Machine Agent explains why, weekly. Read it →
Get the thesis behind this infrastructure — The Machine Agent, weekly.