EDI Validator
Find out why a partner rejected your EDI file. The validator checks the syntax and the envelopes of ANSI X12 and UN/EDIFACT interchanges and points to the line of every problem.
or drop a file here · .edi, .x12, .txt, .dat · up to 20 MB
About the EDI Validator
When a partner’s system bounces an interchange, the reply is often a terse 997, 999 or CONTRL acknowledgement, or simply silence. Many of those rejections come from the envelope rather than the business content: a trailer that counts segments wrongly, or a control number typed differently at the start and the end. This validator finds exactly that kind of fault in ANSI X12 and UN/EDIFACT files.
What gets checked
For X12:
- every ISA field has its fixed width, for example 15 characters for the sender ID in ISA06;
- ISA13 equals IEA02, and IEA01 equals the number of GS groups;
- GS06 equals GE02, and GE01 equals the number of ST transaction sets;
- ST02 equals SE02, and SE01 equals the segments from ST to SE inclusive.
For EDIFACT the same logic applies to UNB/UNZ, UNG/UNE and UNH/UNT. Segments sitting outside any message, a missing final terminator and message types or segment tags that are not in the UNECE D.21A directory are reported as well.
Worked example
Take the X12 example and change SE*6*0001~ to SE*5*0001~. Validation reports one error on line 1, segment 8: SE01 says 5 segments, but transaction set 850 (ST02 0001) has 6 counting ST and SE. Put the 6 back and the result turns green.
Reading the results
Errors break the structure and are almost certain to cause a rejection. Warnings are softer: an unfamiliar code may be a typo, a segment from an older EDIFACT release, or something agreed privately with your partner. Each item shows its line, its segment number and the segment text.
Limits
The validator knows the syntax rules, not your partner’s implementation guide. It cannot tell whether a required segment is missing, whether segments are in the agreed order or whether a qualifier code is allowed. A clean result here is a good first step, not a guarantee of acceptance.
To read the file comfortably, open it in the EDI formatter.
How to use EDI Validator
- Paste your EDI data, open a file, or load an example.
- Select Validate EDI.
- Read each error and warning with its line number, fix the file, then validate again.
Privacy: how it works
Everything happens in your browser. Your text is not sent to any server.
Frequently asked questions
What does it check?
X12: ISA field lengths, and that ISA/IEA, GS/GE and ST/SE pair up with matching control numbers and correct counts. EDIFACT: UNB/UNZ, UNG/UNE and UNH/UNT references and counts. It also flags segments outside a message and unknown message types.
Does it check my partner’s implementation guide?
No. It does not know which segments your partner requires, their order or allowed codes. A file can pass here and still be rejected for business rules.
Why is a segment flagged as not in D.21A?
EDIFACT segment and message names are checked against the UNECE D.21A directory. A warning can mean a typo, a segment from an older directory, or one agreed with your partner.