How to map X12 EDI 214 carrier updates into a TMS
Treat each message as a carrier assertion about a shipment event. Keep the partner code, event time and shipment reference alongside the normalized result so a later correction can be explained.
The transaction set identifies the message; the agreed profile defines how you use it.
X12 describes EDI 214 as a carrier shipment-status message that can convey dates, times, locations, identifiers and conveyance details. Pin the partner’s implementation version and confirm how its codes distinguish events, exceptions and reasons. A code your mapper does not recognize should go to review, not silently become “delivered.”
Bind the carrier reference and stop to the intended shipment before applying a state change. Keep the reported event time separate from the message arrival time.
An earlier status arrives after delivery.
A carrier reports delivery, then a late message reports an earlier arrival. Preserve both events, but do not regress the operational state just because the arrival message was received last. Apply corrections only through the agreed rules for that partner and event type.
Test the status that should not advance the shipment.
- Duplicate: replay the same event and verify it does not create another milestone.
- Same reference, different stop: require specific stop evidence when a load has multiple deliveries.
- Unknown partner code: retain the original value and route it to the mapping owner.
- Delivery without a document: keep the carrier milestone; do not treat it as signed proof of delivery or an authority acknowledgement.