EDI 997 Functional Acknowledgment Inspector & AK5/AK9 Rejection Lookup
Understand why your outbound EDI transmission returned AK5*R or AK9*R—and fix SE01 segment count, ISA/GS control number, and mandatory element errors in one click.
Drop your file below, check the order, then download for Excel (.XLSX) & CSV.
- 1Load your order file
- 2Check it and match your SKUs
Drop your EDI order file here
.edi, .x12 or .txt. The file is read on your computer and is not uploaded.
No chargeback risks found. This order passes every check.
Checked against the Walmart supplier guide for EDI 997.
Retailer Receipt Confirmation (EDI 997)
This official EDI 997 Functional Acknowledgment confirms the retailer's system received and validated your 856 Shipping Notice batch (Group #20856). Keep this receipt for chargeback protection.
| Document Type | Document Reference # | Retailer Status | Notes |
|---|---|---|---|
| 856 Advance Ship Notice (ASN) | Control #0001 | ✓ Accepted | Received & verified with zero syntax errors |
| 856 Advance Ship Notice (ASN) | Control #0002 | ✓ Accepted | Received & verified with zero syntax errors |
Download for your software
Pick where the order is going, then download. Files are ready for Excel, QuickBooks, Shopify or a thermal printer.
Field mapping table: which EDI segment fills which column (for IT & bookkeepers)
EDI 997 Functional Acknowledgment Segments & Error Codes
Deterministic segment-to-column mapping rules enforced by our client-side X12 engine
| Source X12 Segment / Element | Sample Raw Value | Target ERP / CSV Column | Transformation & Validation Logic |
|---|---|---|---|
| AK1*SH*20856~ | Group SH (856) #20856 | Acknowledged Functional Group | References GS01 (PO/SH/IN) and GS06 control number of your original transmission. |
| AK2*856*0001~ | ST*856*0001 | Acknowledged Transaction Set | Identifies the specific ST01 document type and ST02 control number. |
| AK3*SE*27**4~ / AK4*1*96*4*29~ | Segment SE Error Code 4 | Exact Segment & Element Error | AK3 points to the failing segment tag & position; AK4 points to the exact element index and bad value. |
| AK5*R*5~ / AK9*R*1*1*0~ | Rejected (Error Code 5) | Final Transaction & Group Verdict | A = Accepted; E = Accepted with Errors; R = Rejected (AK502=4 means SE01 segment count mismatch). |
Critical Chargeback & Import Pitfalls We Prevent
Common EDI mistakes that trigger $250+ retailer fines or accounting balance errors
AK5*R*4 (Number of Included Segments Does Not Match Actual Count)
Risk: #1 Cause of 997 RejectionsHappens whenever SE01 does not equal the exact number of segments between ST and SE inclusive.
AK403="7" (Invalid Code Value / Explicit Decimal in N2)
Risk: Rejected 810 InvoicePutting a decimal point in TDS01 or SAC05 triggers an AK4 data element syntax error.
Ignoring AK9*P (Partially Accepted Functional Group)
Risk: Silent Dropped OrdersIf you send 10 invoices in one GS group and 1 fails, AK901="P" means 9 were accepted and 1 was rejected.
How to Fix Outbound EDI Files That Failed a 997 Check
Zero middleware setup — complete in under 60 seconds
Load the file that triggered the 997 rejection into our inspector.
Click any red error card in the Compliance Audit Banner to jump to the exact offending segment.
Download the clean, syntax-verified X12 file and retransmit.
Frequently Asked Technical Questions
ANSI X12 specification details, retail companion rules, and ERP import answers
What does AK5*A vs AK5*R mean in an EDI 997?
AK5*A means the transaction set was Accepted without syntax errors. AK5*R means the transaction set was Rejected and discarded by the receiver’s EDI translator.
What do AK502 error codes 1, 2, 3, 4, and 5 mean?
1 = Transaction Set Not Supported; 2 = Transaction Set Trailer (SE) Missing; 3 = Control Number in ST and SE Do Not Match; 4 = Number of Included Segments (SE01) Does Not Match Actual Count; 5 = One or More Segments in Error.
Related EDI Converters, Retailer Guides & X12 Segment References
- Transaction setsEDI 856 Advance Ship Notice (ASN) Inspector, Excel Converter & Label Generator
- Transaction setsEDI 810 Commercial Invoice Inspector & QuickBooks / Xero Converter
- Transaction setsEDI 855 Purchase Order Acknowledgment Inspector & Turnaround Guide
- Transaction setsEDI 846 Inventory Inquiry/Advice Parser & CSV Converter
- Transaction setsEDI 820 Payment Order / Remittance Advice Decoder & Excel Reconciler
- ToolsOnline ANSI X12 EDI Viewer & Human-Readable Inspector
- IntegrationsConvert EDI 850 Purchase Orders to Shopify Orders (Matrixify CSV & API)
- RetailersWalmart EDI 850 / 856 / 810 Converter, SDQ Splitter & Chargeback Linter
- X12 referenceEDI 856 HL Segment: S→O→T→P→I Hierarchy Validator & Excel Flattener