AK4 Data Element Note

To report errors in a data element or composite data structure and identify the location of the data element

Position
Element
Name
Type
Requirement
Min
Max
Repeat
AK4-01
Position in Segment
Composite (composite)
Mandatory
1
01
Element Position in Segment
Numeric (N0)
Mandatory
1
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
02
Component Data Element Position in Composite
Numeric (N0)
Optional
1
2
-
To identify the component data element position within the composite that is in error
03
Repeating Data Element Position
Numeric (N0)
Optional
1
4
-
To identify the specific repetition of a data element that is in error
AK4-02
Data Element Reference Number
Numeric (N0)
Optional
1
4
1
Reference number used to locate the data element in the Data Element Dictionary
AK4-03
Data Element Syntax Error Code
Identifier (ID)
Mandatory
1
3
1
Code indicating the error found after syntax edits of a data element
AK4-04
Copy of Bad Data Element
String (AN)
Optional
1
99
1
This is a copy of the data element in error
In no case shall a value be used for AK404 that would generate a syntax error, e.g., an invalid character.

Stedi is a registered trademark of Stedi, Inc. Stedi's EDI Reference is provided for marketing purposes and is free of charge. All names, logos, and brands of third parties listed on our site are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Our use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.