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 |
| 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 |
AK403 - Data Element Syntax Error Code
| Code |
Definition |
| 1 | Mandatory data element missing |
| 2 | Conditional required data element missing. |
| 3 | Too many data elements. |
| 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 |
AK501 - Transaction Set Acknowledgment Code
| Code |
Definition |
| A | Accepted |
| E | Accepted But Errors Were Noted |
| M | Rejected, Message Authentication Code (MAC) Failed |
| R | Rejected |
| W | Rejected, Assurance Failed Validity Tests |
| X | Rejected, Content After Decryption Could Not Be Analyzed |
AK502 - Transaction Set Syntax Error Code
| Code |
Definition |
| 1 | Transaction Set Not Supported |
| 2 | Transaction Set Trailer Missing |
| 3 | Transaction Set Control Number in Header and Trailer Do Not Match |
| 4 | Number of Included Segments Does Not Match Actual Count |
| 5 | One or More Segments in Error |
| 6 | Missing or Invalid Transaction Set Identifier |
| 7 | Missing or Invalid Transaction Set Control Number |
| 8 | Authentication Key Name Unknown |
| 9 | Encryption Key Name Unknown |
| 10 | Requested Service (Authentication or Encrypted) Not Available |
| 11 | Unknown Security Recipient |
| 12 | Incorrect Message Length (Encryption Only) |
| 13 | Message Authentication Code Failed |
| 15 | Unknown Security Originator |
| 16 | Syntax Error in Decrypted Text |
| 17 | Security Not Supported |
| 23 | Transaction Set Control Number Not Unique within the Functional Group |
| 24 | S3E Security End Segment Missing for S3S Security Start Segment |
| 25 | S3S Security Start Segment Missing for S3E Security End Segment |
| 26 | S4E Security End Segment Missing for S4S Security Start Segment |
| 27 | S4S 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 |
| A | Accepted |
| E | Accepted, But Errors Were Noted |
| M | Rejected, Message Authentication Code (MAC)Failed |
| P | Partially Accepted, At Least One Transaction Set Was Rejected |
| R | Rejected |
| W | Rejected, Assurance Failed Validity Tests |
| X | Rejected, Content After Decryption Could Not Be Analyzed |
AK905 - Functional Group Syntax Error Code
| Code |
Definition |
| 1 | Functional Group Not Supported |
| 2 | Functional Group Version Not Supported |
| 3 | Functional Group Trailer Missing |
| 4 | Group Control Number in the Functional Group Header and Trailer Do Not Agree |
| 5 | Number of Included Transaction Sets Does Not Match Actual Count |
| 6 | Group Control Number Violates Syntax |
| 10 | Authentication Key Name Unknown |
| 11 | Encryption Key Name Unknown |
| 12 | Requested Service (Authentication or Encryption) Not Available |
| 13 | Unknown Security Recipient |
| 14 | Unknown Security Originator |
| 15 | Syntax Error in Decrypted Text |
| 16 | Security Not Supported |
| 17 | Incorrect Message Length (Encryption Only) |
| 18 | Message Authentication Code Failed |
| 23 | S3E Security End Segment Missing for S3S Security Start Segment |
| 24 | S3S Security Start Segment Missing for S3E End Segment |
| 25 | S4E Security End Segment Missing for S4S Security Start Segment |
| 26 | S4S 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.