Skip to content
Independent EDI conversion and validation software. Retailer names identify interoperability targets; no retailer endorsement is implied.
Shipment Sentry

EDI 997 Rejected: What AK5 and AK9 Mean

Treat a rejected 997 as an owned syntax exception and use AK3/AK4 details where present to repair the source.

Direct answer

A rejected 997 means the receiving EDI system did not accept all or part of the acknowledged X12 group at the syntax layer. AK5 can report a transaction-set result and AK9 reports the functional-group result. R is rejected; P can indicate partial acceptance; E or W indicates accepted with errors. Match controls first, preserve the raw acknowledgement hash, then repair and resubmit under the trading partner retry rules.

Why a parser is not enough

The useful unit is not a file that parses; it is a business document with a known decision, an owner, a source trail and a matched downstream response. This page connects the technical structure to that operating workflow.

What the control should check

  1. 01Match AK102 to outbound GS06.
  2. 02Match AK202 to ST02 when AK2 exists.
  3. 03Read AK5 and AK9 independently.
  4. 04Capture AK3 and AK4 syntax details.
  5. 05Do not mark the business document accepted from transport delivery alone.

Working example

AK1*SH*42~AK2*856*0001~AK5*R~AK9*R*1*1*0~

The excerpt is intentionally compact. Use the working validator or authenticated gateway with the complete interchange to obtain a decision.

Failure modes worth catching

  • A transport receipt is mistaken for business acceptance.
  • Control identifiers are regenerated between validation and submission.
  • A warning has no owner and becomes a recurring manual investigation.
  • The document is checked alone even though the truth exists in a purchase order, label or acknowledgement.

Put it into the dispatch workflow

  1. 1Validate the source document before transport.
  2. 2Block deterministic failures and assign every review item.
  3. 3Release with a recorded owner and timestamp.
  4. 4Match functional and application acknowledgements.
  5. 5Reconcile confirmed outcomes back into fixtures and rules.
Use batch validation and acknowledgement tracking

Implementation answers

Does Shipment Sentry replace my EDI provider?

No. It sits before the existing transport as a validation and evidence sidecar.

What does cleared mean?

The document has no blocking finding in the current rule pack. It is not a guarantee of trading-partner or receiving acceptance.

How are repeat requests kept safe?

The API requires an idempotency key, stores only a token hash, scopes every record to one workspace and rejects reuse with different content.

Reviewed 2026-07-18. Public references cannot establish every partner-specific rule. Current implementation guides and agreements remain controlling.

Related EDI controls

View the library