Product: X12 EDI
AK4 - Data Element Note
To report errors in a data element or composite data structure and identify the location of the data element
SCHEMA
Element | Name | Min/Max |
AK401 | Position in Segment |
|
AK402 | Data Element Reference Number | 1/4 |
AK403 | Data Element Syntax Error Code | 1/3 |
AK404 | Copy of Bad Data Element | 1/99 |
AK401 - Position in Segment
TYPE=N0 MIN=1 MAX=2
This is used to indicate the relative position of a simple data element, or the relative position of a composite data structure with the relative position of the component within the composite data structure, in error; in the data segment the count starts with 1 for the simple data element or composite data structure immediately following the segment ID
AK402 - Data Element Reference Number
TYPE=N0 MIN=1 MAX=4
Reference number used to locate the data element in the Data Element Dictionary
AK403 - Data Element Syntax Error Code
TYPE=ID MIN=1 MAX=3
Code indicating the error found after syntax edits of a data element
Code | Definition |
1 | Mandatory data element missing |
2 | Conditional required data element missing. |
3 | Too many data elements. |
| More data elements existed than defined for the segment |
4 | Data element too short. |
5 | Data element too long. |
6 | Invalid character in data element. |
7 | Invalid code value. |
8 | Invalid Date |
9 | Invalid Time |
10 | Exclusion Condition Violated |
12 | Too Many Repetitions; More repetitions existed than defined for the segment |
13 | Too Many Components; More components existed than defined for the element |
AK404 - Copy of Bad Data Element
TYPE=AN MIN=1 MAX=99
This is a copy of the data element in error
Comments
Semantic Notes |
|
04 | In no case shall a value be used for AK404 that would generate a syntax error, e.g., an invalid character. |
rev 3/3/2025