Reference·AK9 Segment·AK9*R
X12 999 Reference

Understanding X12 999 AK9*R: Rejected in Practice

Jul 27, 2026 · 4 min read
← AK9*A

A rejected functional group doesn't always mean every transaction set inside it failed — AK9*R is a statement about the group as a whole, and the individual AK2/IK5 results underneath it can still show some sets that were fine.

Quick answer

AK9*R is the AK9 segment with acknowledge code R, meaning the receiver rejected the functional group overall, typically because a structural problem at the group level or one or more failed transaction sets kept the group from being usable as submitted.

What this element contains

R
Rejected — the functional group was not accepted as a whole
AK904
Can still be nonzero — some individual transaction sets inside a rejected group may have passed their own validation
Distinct from
P (Partially Accepted) — R signals the group itself was not usable; P signals the group was split into accepted and rejected portions

Example

Synthetic example Generated by Synthibase
AK9*R*1*1*0

A synthetic rejected functional group — one transaction set included and received, zero accepted. Synthetic test data.

Where this trips people up

Some intake pipelines route any 999 with AK901 = R straight to a manual review queue and stop parsing further, which means the specific AK2/IK5 segments explaining which transaction set failed and why never get surfaced to whoever is doing the review. That turns a rejection with a precise, machine-readable cause into a support ticket that starts from scratch.

X12 999 AK9 Segment Guide: Fields, Format, and Testing Gotchas
EDI Rejection Codes: Complete List and How to Fix Them
EDI 999 vs 997: What's the Difference and Why It Matters
Test rejection handling down to the transaction set
Synthibase generates synthetic 999 rejections paired with the underlying AK2/IK5 detail, so routing logic gets tested against real failure reasons instead of a bare R code that dead-ends in a manual queue.
Start free trial →
This page is written independently by Synthibase for testing and informational purposes. It is not an official publication of HL7 International or X12/Washington Publishing Company, and is not a substitute for reviewing the official standard or your trading partner's companion guide. See our Terms of Service for full legal terms.