997 Acknowledgment Error Codes

Image Description

Written by Mike

January 30, 2015

The following table lists show all possible error codes used within the segments of the 997 functional acknowledgment.

AK304 - Segment Syntax Error Code

Code Definition
1Unrecognized segment ID
2Unexpected segment
3Mandatory segment missing
4Loop Occurs Over Maximum Times
5Segment Exceeds Maximum Use
6Segment Not in Defined Transaction Set
7Segment Not in Proper Sequence
8Segment Has Data Element Errors

AK403 - Data Element Syntax Error Code

Code Definition
1Mandatory data element missing
2Conditional required data element missing.
3Too many data elements.
4Data element too short.
5Data element too long.
6Invalid character in data element.
7Invalid code value.
8Invalid Date
9Invalid Time
10 Exclusion Condition Violated

AK501 - Transaction Set Acknowledgment Code

Code Definition
AAccepted
EAccepted But Errors Were Noted
MRejected, Message Authentication Code (MAC) Failed
RRejected
WRejected, Assurance Failed Validity Tests
XRejected, Content After Decryption Could Not Be Analyzed

AK502 - Transaction Set Syntax Error Code

Code Definition
1Transaction Set Not Supported
2Transaction Set Trailer Missing
3Transaction Set Control Number in Header and Trailer Do Not Match
4Number of Included Segments Does Not Match Actual Count
5One or More Segments in Error
6Missing or Invalid Transaction Set Identifier
7Missing or Invalid Transaction Set Control Number
8Authentication Key Name Unknown
9Encryption Key Name Unknown
10Requested Service (Authentication or Encrypted) Not Available
11Unknown Security Recipient
12Incorrect Message Length (Encryption Only)
13Message Authentication Code Failed
15Unknown Security Originator
16Syntax Error in Decrypted Text
17Security Not Supported
23Transaction Set Control Number Not Unique within the Functional Group
24S3E Security End Segment Missing for S3S Security Start Segment
25S3S Security Start Segment Missing for S3E Security End Segment
26S4E Security End Segment Missing for S4S Security Start Segment
27S4S Security Start Segment Missing for S4E Security End Segment

AK503 - Transaction Set Syntax Error Code

Code Definition
Use the same codes indicated in AK502.

AK504 - Transaction Set Syntax Error Code

Code Definition
Use the same codes indicated in AK502.

AK505 - Transaction Set Syntax Error Code

Code Definition
Use the same codes indicated in AK502.

AK506 - Transaction Set Syntax Error Code

Code Definition
Use the same codes indicated in AK502.

AK901 - Functional Group Acknowledge Code

Code Definition
AAccepted
EAccepted, But Errors Were Noted
MRejected, Message Authentication Code (MAC)Failed
PPartially Accepted, At Least One Transaction Set Was Rejected
RRejected
WRejected, Assurance Failed Validity Tests
XRejected, Content After Decryption Could Not Be Analyzed

AK905 - Functional Group Syntax Error Code

Code Definition
1Functional Group Not Supported
2Functional Group Version Not Supported
3Functional Group Trailer Missing
4Group Control Number in the Functional Group Header and Trailer Do Not Agree
5Number of Included Transaction Sets Does Not Match Actual Count
6Group Control Number Violates Syntax
10Authentication Key Name Unknown
11Encryption Key Name Unknown
12Requested Service (Authentication or Encryption) Not Available
13Unknown Security Recipient
14Unknown Security Originator
15Syntax Error in Decrypted Text
16Security Not Supported
17Incorrect Message Length (Encryption Only)
18Message Authentication Code Failed
23S3E Security End Segment Missing for S3S Security Start Segment
24S3S Security Start Segment Missing for S3E End Segment
25S4E Security End Segment Missing for S4S Security Start Segment
26S4S Security Start Segment Missing for S4E Security End Segment

AK906 - Functional Group Syntax Error Code

Code Definition
Use the same codes indicated in AK905.

AK907 - Functional Group Syntax Error Code

Code Definition
Use the same codes indicated in AK905.

AK908 - Functional Group Syntax Error Code

Code Definition
Use the same codes indicated in AK905.

AK909 - Functional Group Syntax Error Code

Code Definition
Use the same codes indicated in AK905.

We hope you found this article helpful! Please reach out to us with questions/feedback.