X12 segment reference
AK5 — Transaction Set Response Trailer
X12 AK5 segment in 997 acknowledgements: A=accepted, E=accepted with errors, R=rejected — the status developers watch first.
AK5 segment facts
- AK501 code R means the entire transaction set failed — resend after fixing AK4 element errors, not just the header.
- AK501 E is a warning state: partners may accept today but score you down or hard-reject the next similar document.
- SignalEDI self-healing workflows classify AK5 R/E responses and surface segment-level AK4 detail in operator views.
What the AK5 segment does
AK5 closes each AK2 loop with the transaction set disposition. AK501 A/E/R is the first field integrators check after sending.
Loop: Once per AK2 loop
Common transaction sets: 997
Key elements
| Element | Name | Description |
|---|---|---|
| AK501 | Transaction set acknowledgement code | A=accepted, E=accepted but errors noted, R=rejected. |
| AK502 | Transaction set syntax error code | Populated when AK501 is E or R. |
Example AK5 segment
AK5*A~
Parse and validate samples with the free EDI validator or send JSON via the JSON→X12 mapping guide.
Common AK5 errors
- R with AK4 element errors downstream
- E treated as success when partner still expects fixes
Related reference
FAQ
Frequently asked questions
No. E means the partner accepted the envelope but reported errors you should fix before the next send.