All guides

EDI 997 vs 999: which acknowledgment will your partner send?

The 997 and the 999 are both X12 receipts that say a file arrived. The 997 reports problems at the group or transaction set level. The 999 adds checks against an implementation guide. Your trading partner picks one, and it is normally one or the other for the same group, unless both sides agree otherwise. Neither says the order is right.

What is the difference between a 997 and a 999?

The Talend documentation from Qlik puts it in three lines:

  • The 997 “is used to report problems at the functional group or transaction set level.”
  • The 999 “is used to provide additional implementation specification validation reporting.”
  • The TA1 is for “problems with the interchange or functional group (ISA/GS).”

In plain words, the 997 asks “is this file well formed?” The 999 asks that too, and also “does it follow the guide we agreed on?” An implementation guide is the partner-specific rulebook layered on top of the X12 standard. For how the 997 itself reads, see our EDI 997 guide.

Three checks, from the outside in
  1. TA1Interchange envelope (ISA/GS)
  2. 997Group and transaction set syntax
  3. 999Syntax plus implementation guide rules

What does a 999 contain that a 997 does not?

Stedi’s reference for the 999 lists the segments of the transaction set. The 997 has its own AK segments, so some names will look familiar:

Segment What it is Status
AK1 Functional Group Response Header Mandatory
AK2 Transaction Set Response Header Mandatory inside its optional loop
IK3 Implementation Data Segment Note Mandatory inside its loop
CTX Context Optional
IK4 Implementation Data Element Note Mandatory inside its loop
IK5 Implementation Transaction Set Response Trailer Mandatory
AK9 Functional Group Response Trailer Mandatory

The IK3 and IK4 segments name the segment and the data element that broke a rule. Stedi’s page says CTX “shall be used to disambiguate a reported error that is dependent on context.” It also says that if implementation guide errors are reported in IK3 or IK4, “code I5 shall be reported in the IK5 Segment.”

That I5 code is the clearest signal. It tells your team the failure is about the guide, not just the raw syntax.

Does a 999 prove the order is correct?

No. TrueCommerce’s help article says the 999 checks received transactions for syntax against implementation guides, and that acknowledgments “do not report on the semantic meaning of the transaction sets.”

So a clean 999 still leaves business questions open: the price, the quantity, whether the supplier will fill the line. Those answers come in documents such as the 855 purchase order acknowledgment.

Can you receive both a 997 and a 999?

For the same group, usually not. Stedi’s reference for the 999 says: “There is only one Implementation Acknowledgment Transaction Set per acknowledged functional group.” It adds that only one acknowledgment should be generated for a functional group “unless mutually agreed upon.”

Software follows the same rule. The AWS B2B Data Interchange guide says its service “generates either a 999 or 997 acknowledgement, but never both.” A 2010-era Microsoft BizTalk Server note says a 999 is returned instead of a 997 when its override setting is on, and that the two cannot be generated at the same time without a custom pipeline component.

Those are two products’ behaviors, so ask your partner what theirs does.

Which industries use the 999?

Mostly healthcare. AWS says its service generates a 999 X231 acknowledgment for all X12 version 5010 HIPAA transactions. It also describes a non-HIPAA 999 for other healthcare-related X12 transactions. For other kinds of transactions it says that “most finance, transportation, supply chain, and communication & control transactions generate a 997.”

Stedi’s page describes the 999 as a response to healthcare EDI messages. WEDI, a nonprofit health IT group, published an issue brief in 2019, as reported by Healthcare Facilities Today with a section on “Why the 999 instead of 997?”, aimed at HIPAA 5010 transactions.

For distributors and 3PLs, that means a 997 is the likelier request on purchase orders, ship notices and invoices. Some partners may still ask for a 999. Their trading partner guide will say.

What should you ask a trading partner?

Before you build or change a map, get written answers to these:

  1. Which acknowledgment do you send for each document: 997, 999, or a TA1 only?
  2. Do you send one for every group, or only for rejects?
  3. What is the time window before a missing acknowledgment counts as a problem?
  4. Do you want one from us, and which type?
  5. Which implementation guide and version do you validate against?
  6. Where do we send corrections after a rejection?

Write the answers into one sheet per partner. When a file goes unacknowledged, your team then knows what “late” means for that partner, rather than guessing.

Where Dockmend fits

Dockmend is being built to help operations teams watch for exceptions, such as an order or ship notice that has no acknowledgment, and flag them for a person to review. It is still being built, and we have not announced support for any EDI network or ERP. Start your free trial

This guide is general information, not legal or compliance advice. EDI details vary by trading partner, version and implementation guide, so check your partner’s before you build or change anything.