100% Offline Reference
Trailer Count Rules
Troubleshooting SE-01, GE-01, IEA-01 & UNT-01 Control Mismatches
Whenever a developer adds a missing REF or DTP segment to a test fixture by hand, forgetting to increment SE-01 causes an immediate fatal syntax rejection before business validation even runs.
Complete X12 & EDIFACT Trailer Control Matrix
| Trailer Field | What It Counts | Paired Control Number Match |
|---|---|---|
SE-01 | Total segments from ST through SE inclusive. | SE-02 == ST-02 |
GE-01 | Number of ST..SE transaction sets inside this GS..GE group. | GE-02 == GS-06 |
IEA-01 | Number of GS..GE functional groups inside this ISA..IEA interchange. | IEA-02 == ISA-13 (9-digit zero-padded) |
UNT-01 (EDIFACT) | Total segments from UNH through UNT inclusive (excludes UNA/UNB). | UNT-02 == UNH-01 |
UNZ-01 (EDIFACT) | Number of messages (or UNG groups) inside UNB..UNZ. | UNZ-02 == UNB-05 |
Frequently Asked Engineering Questions
Does ISA-13 have to match IEA-02 byte-for-byte including leading zeros?
ISA-13 is fixed-width 9 digits (e.g. 000000042). While base X12 allows IEA-02 to omit leading zeros in some legacy 4010 translators, HIPAA 5010 clearinghouses strongly enforce exact string equality (000000042 == 000000042).
Inspect, Diff, Validate & Scrub This Payload Offline in Your JetBrains IDE
Never paste regulated healthcare PHI (837/835/271) or supply-chain payloads (850/ORDERS) into browser parsers. EdiPrism X12 EDIFACT runs 100% air-gapped inside IntelliJ IDEA, PyCharm, DataGrip, Rider, GoLand, and WebStorm with a free core tier and a 14-day [Pro] trial.