EDIFACT message guide · Control and acknowledgments
APERAK Application error and acknowledgement
The UN/EDIFACT message a receiving application uses to acknowledge a message or report that it was rejected because of errors.
- Sent by
- Receiver of the original message
- Received by
- Sender of the original message
- Standard
- UN/EDIFACT · Batch message
- X12 equivalent
- 824 Application Advice
What is the EDIFACT APERAK message?
APERAK is the UN/EDIFACT application error and acknowledgement message. The directory gives it two functions: to inform a message issuer that its message was received by the addressee's application and rejected because of errors found during processing, and to acknowledge to the issuer that the addressee's application received the message.
APERAK works at the business level. A message can be syntactically correct, and acknowledged with CONTRL, but still be rejected by the application, for example because of an unknown product code or a duplicate invoice number. APERAK reports those problems so the sender can correct and resend.
How to read this diagram: the top row shows who sends APERAK, to whom, and which messages usually come before and after it. The lower part shows what the directory D.21A itself requires: the envelopes around APERAK and the segments and segment groups it marks mandatory. Conditional groups are listed by their trigger segment rather than drawn in full. This is the directory's minimum, not a trading partner's requirement: a message implementation guide, such as an industry subset or a partner’s own guide, usually makes some conditional groups mandatory, restricts the codes and may use an older directory.
When it is used
- Rejecting a message with business-level errors
- Confirming that an application processed a message
- Reporting errors in invoices, orders or despatch advices
Where it fits in the message flow
Structure
Mandatory segments in APERAK (directory D.21A)
In UN/EDIFACT directory D.21A, the APERAK message has 17 segment positions arranged in 5 segment groups. These are the segments and segment groups marked mandatory at message level, in order; a mandatory group is shown with the segment that starts it. Segments inside conditional groups are needed only when the group is used. This is the directory’s requirement, not your trading partner’s: each partner’s message implementation guide names the directory it uses, often an older one such as D.96A or D.01B where the structure can differ, makes some conditional segments mandatory and restricts the codes.
- UNH
- BGM
- UNT
Practical example
APERAK in practice
A retailer's invoice processing system receives an INVOIC that references an order number it does not know. It rejects the invoice with an APERAK giving the invoice number, the error code and a description. The supplier's EDI team corrects the order reference and resends the invoice the same day.
Implementation
Implementation considerations for APERAK
- Agree which errors trigger APERAK and which codes describe them.
- Route APERAKs to the team that can fix the data, not only to IT.
- Distinguish APERAK (application) from CONTRL (syntax) acknowledgements.
- Track rejected messages until a corrected version is accepted.
How ECOM helps
Automate APERAK with ECOM
Solution
EDI Integration
Exchange X12 and EDIFACT documents with partners and integrate them directly with your ERP.
Solution
Supply Chain Visibility
Track orders, shipments and invoices across partners and catch exceptions early.
Industry
Retail
Retail and eCommerce EDI for suppliers and retailers, from purchase order to payment, with compliance built in.
Compare X12 and EDIFACT, or see answers to general questions in the EDI FAQ.
Related messages
Related control and acknowledgments messages
Need help with APERAK?
ECOM maps, tests and monitors EDIFACT messages for your trading partners and integrates them with your ERP.