Wrapped ISA header — 940 warehouse shipping order
A mail client hard-wrapped the ISA segment mid-element, putting a CR/LF inside ISA08. x12-tidy replaces the break with a space, re-measures the element, and the interchange comes out conformant (one warning, one error, both resolved).
The interchange as submitted
Corrected interchange
Envelope
| Sender | ZZ / SHIPPERONEFrom ISA05 (qualifier) and ISA06 (ID). |
|---|---|
| Receiver | ZZ / RECEIVER TWOFrom ISA07 (qualifier) and ISA08 (ID). |
| Usage indicator | PISA15 — P = production, T = test, I = information. |
| Interchange version | 00401ISA12 — the interchange control version number. |
| Date / time | 240705 2200ISA09 and ISA10 — when the interchange was prepared. |
| Functional groups | 1GS segments counted while walking the payload; IEA01 is checked against this. |
| Transaction sets | 1ST segments counted; each group's GE01 is checked against its own count. |
| Segments | 9Total segments in the cleansed payload; each SE01 is checked against its set's count. |
Repair passes
The Byte column is the offset into the submitted text where the flagged structure begins; ISA-line findings share a number, and a dash means the finding isn't tied to one spot.
Pass 1 1 error 1 warning changed the interchange
282 bytes in → 280 bytes out.
| Severity | Code | Byte | Finding |
|---|---|---|---|
| ERROR | isa.element-width |
0 |
An ISA element is not its fixed width
ISA08 is 17 byte(s), over its fixed width of 15 by trailing spaces only; trimmed.
Every ISA element has a fixed width -- ISA06 is 15 bytes, ISA13 is 9, and so on. This element was shorter (space-padded on the right to fit) or longer only by trailing spaces (trimmed). The value itself is unchanged. A sender that right-trims blank fixed-width fields is the usual cause. This is an error, not a warning: the ISA line is no longer 105 bytes, and conventional VAN services and fixed-offset parsers cannot read the interchange at all until it is repaired. |
| WARNING | isa.element-embedded-newline |
0 |
A carriage return or line feed sits inside an ISA element
ISA08 contains 2 carriage-return/line-feed byte(s) (b'RECEIVER\r\nTWO '); replaced with spaces.
An ISA element value contains a CR or LF byte -- almost always a sender that hard-wrapped the ISA segment across lines. The delimiters are already known at this point, so the byte cannot be a delimiter (ISA11 when it carries the repetition separator, and ISA16, are left untouched); it is replaced with a space and the element is then measured against its fixed width. |
Pass 2 clean no change
280 bytes in → 280 bytes out.
No findings on this pass.