EDI 997 & 824 Rejection Codes Lookup & 1-Click Auto-Fix Tool
Look up any AK3, AK4, AK5, OTI, or TED rejection code below—and drop your rejected 850, 856, or 810 file into the workbench to auto-heal syntax and balance errors.
Drop your file below, check the order, then download for QuickBooks Desktop (.IIF).
- 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.
3 problems that could trigger a chargeback
Checked against the Walmart supplier guide for EDI 850.
- Detected Cross-Dock SDQ allocations (6 store-level splits verified against PO102).
- Walmart Dept #0018 & Vendor #123456789 verified.
Purchase Order Summary & Line Items
| Order / Store # | Your SKU | Retailer Item # / UPC | Item Description | Qty | Unit Price | Line Total |
|---|---|---|---|---|---|---|
| PO-4500991288-STORE-0101 | Item: 554433221 UPC: 012345678905 | ORGANIC COTTON BATH TOWEL ROYAL BLUE | 15 EA | $12.50 | $187.50 | |
| PO-4500991288-STORE-0102 | Item: 554433221 UPC: 012345678905 | ORGANIC COTTON BATH TOWEL ROYAL BLUE | 35 EA | $12.50 | $437.50 | |
| PO-4500991288-STORE-0103 | Item: 554433221 UPC: 012345678905 | ORGANIC COTTON BATH TOWEL ROYAL BLUE | 40 EA | $12.50 | $500.00 | |
| PO-4500991288-STORE-0101 | Item: 554433299 UPC: 012345678912 | LUXURY WAFFLE ROBE WHITE XL | 20 EA | $18.00 | $360.00 | |
| PO-4500991288-STORE-0102 | Item: 554433299 UPC: 012345678912 | LUXURY WAFFLE ROBE WHITE XL | 20 EA | $18.00 | $360.00 | |
| PO-4500991288-STORE-0103 | Item: 554433299 UPC: 012345678912 | LUXURY WAFFLE ROBE WHITE XL | 20 EA | $18.00 | $360.00 |
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)
Top EDI 997 (Syntax) & 824 (Business Logic) Rejection Codes & Fixes
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 |
|---|---|---|---|
| 997 AK502="4" / AK304="4" | SE01 Segment Count Mismatch | SE01_COUNT_MISMATCH | Declared SE01 count does not equal actual segments from ST to SE. Fixed by recalculating SE01. |
| 997 AK403="7" on TDS / SAC | Illegal Decimal in N2 Element | TDS01 / SAC05_ILLEGAL_DECIMAL | N2 elements cannot contain a period ".". Fixed by multiplying by 100 and rounding to integer. |
| 824 TED01="848" (Out of Balance) | TDS01 != Sum(IT1) ± SAC | TDS01_TOTAL_MISMATCH | Invoice summary total does not match line items. Fixed by recomputing TDS01 & TDS02 in cents. |
| 824 TED01="007" on MAN*GM | Invalid SSCC-18 Check Digit | SSCC18_INVALID_MOD10 | 20th digit of MAN*GM fails Modulo 10 check. Fixed by recalculating GS1 Modulo 10 check digit. |
Critical Chargeback & Import Pitfalls We Prevent
Common EDI mistakes that trigger $250+ retailer fines or accounting balance errors
Manually Editing X12 Files in Notepad Without Recalculating SE01 & CTT
Risk: Endless 997 Rejection LoopFixing a business error by adding a REF segment in Notepad breaks SE01, trading an 824 error for a 997 rejection.
Confusing Gateway Syntax Checks (997) with ERP Business Checks (824)
Risk: Missed Chargeback DeadlinesVendors celebrate a 997 "A" and ignore the 824 "TR" that arrives 2 hours later.
Retransmitting Rejected ASNs After Shipment Arrival
Risk: $250–$500 Late ASN FineIf your first 856 ASN is rejected due to a bad SSCC-18 check digit, the truck may arrive before you resend.
How to Diagnose & Auto-Fix Any Rejected EDI File
Zero middleware setup — complete in under 60 seconds
The preloaded demo file has SAC05_ILLEGAL_DECIMAL, SDQ_QTY_SUM_MISMATCH, and SE01_COUNT_MISMATCH.
Watch the banner turn green as SAC05, SDQ, and SE01 are repaired automatically.
Switch the left pane to "Raw X12 Editor" to copy your clean, compliant X12 payload.
Frequently Asked Technical Questions
ANSI X12 specification details, retail companion rules, and ERP import answers
Can EDIParse automatically fix SE01 segment counts, N2 decimals, and SSCC-18 check digits?
Yes! Click the green "Auto-Fix All Issues & Re-Serialize X12" button inside the Compliance Audit Banner to heal all detected violations in one click.
What do AK403 data element error codes 1 through 7 mean?
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.
Related EDI Converters, Retailer Guides & X12 Segment References
- X12 referenceEDI 850 BEG Segment: Beginning Segment for Purchase Order Guide
- X12 referenceEDI 850 PO1 Segment & Product Qualifiers (UP, IN, VN, BP, UK) Guide
- X12 referenceEDI 850 SDQ Segment: Cross-Dock Store Allocation Guide & Excel Splitter
- X12 referenceEDI 856 BSN Segment: Beginning Segment for Ship Notice Guide
- X12 referenceEDI 856 HL Segment: S→O→T→P→I Hierarchy Validator & Excel Flattener
- X12 referenceEDI 856 MAN Segment: MAN*GM SSCC-18 & Marks and Numbers Guide
- ToolsOnline ANSI X12 EDI Viewer & Human-Readable Inspector
- ToolsConvert EDI X12 Files (850 / 856 / 810) to Excel (.XLSX) & CSV
- ToolsConvert ANSI X12 EDI (850 / 856 / 810) to Normalized JSON