FoundryNet / Error codes / MTConnect OUT_OF_RANGE
MTConnect error code

OUT_OF_RANGE — Requested sequence number is out of range

The requested sequence number is no longer in the agent's buffer, or is beyond what it has produced. Agents keep a rolling buffer, and anything older has been discarded.

Start free MTConnect → canonical

Diagnosis

When you hit this


Resolution

How to fix it

  1. Recover via /current
    Fetch /current to get the present nextSequence and resume streaming from there. Do not retry the stale number.
  2. Track instanceId
    The agent's instanceId changes on restart. If it changed, your saved sequence is meaningless and you must resynchronize.
  3. Size the buffer for your slowest client
    Buffer size divided by data rate is your recovery window. Make it longer than any expected client outage.

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 MTConnect telemetry

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

# normalize telemetry from MTConnect — 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 MTConnect codes: NO_DEVICE UNAUTHORIZED UNAVAILABLE

Equipment that speaks MTConnect: DMG Mori Fanuc Haas Heidenhain Mazak Okuma Siemens Sinumerik Makino Yaskawa Motoman Bridgeport

MTConnect protocol hub

Other protocols: Modbus OPC UA MQTT / Sparkplug B FANUC FOCAS EtherNet/IP PROFINET / S7 BACnet/IP J1939 (CAN) 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.