Product: X12 EDI
AK3 - Data Segment Note
To report errors in a data segment and identify the location of the data segment
SCHEMA
Element | Name | Min/Max |
AK301 | Segment ID Code | 2/3 |
AK302 | Segment Position in Transaction Set | 1/10 |
AK303 | Loop Identifier Code | 1/4 |
AK304 | Segment Syntax Error Code | 1/3 |
AK301 - Segment ID Code
TYPE=ID MIN=2 MAX=3
Code defining the segment ID of the data segment in error (See Appendix A - Number 77)
AK302 - Segment Position in Transaction Set
TYPE=N0 MIN=1 MAX=10
The numerical count position of this data segment from the start of the transaction set: the transaction set header is count position 1
AK303 - Loop Identifier Code
TYPE=AN MIN=1 MAX=4
The loop ID number given on the transaction set diagram is the value for this data element in segments LS and LE
AK304 - Segment Syntax Error Code
TYPE=ID MIN=1 MAX=3
Code indicating error found based on the syntax editing of a segment
Code | Definition |
1 | Unrecognized segment ID |
2 | Unexpected segment |
3 | Mandatory segment missing |
4 | Loop Occurs Over Maximum Times |
5 | Segment Exceeds Maximum Use |
6 | Segment Not in Defined Transaction Set |
7 | Segment Not in Proper Sequence |
8 | Segment Has Data Element Errors |
rev 3/3/2025