APERAK — EDIFACT Application Error and Acknowledgement Message (D.18B)
The APERAK message is the application-error acknowledgement returned by the recipient of a business message (ORDERS, INVOIC, DESADV…) beyond the CONTRL syntactic check: it reports business anomalies detected during integration (unknown references, inconsistent dates, inactive items, unnegotiated prices) and lets the sender correct and resubmit. This page summarises the segment structure as published by UN/CEFACT for directory D.18B.
Purpose
The APERAK message is the application-error acknowledgement returned by the recipient of a business message (ORDERS, INVOIC, DESADV…) beyond the CONTRL syntactic check: it reports business anomalies detected during integration (unknown references, inconsistent dates, inactive items, unnegotiated prices) and lets the sender correct and resubmit.
This page focuses on the structure published by UN/CEFACT for directory D.18B. The segments listed, their status (M / C), position and repetition factor are extracted from the official file aperak_c.htm hosted on service.unece.org.
Segment structure
The APERAK D.18B message has 22 header entries, 0 detail entries and 0 summary entries (segments and groups combined). Groups are shown in bold and their members are indented by actual nesting depth.
Header
| Pos. | Tag | Name | S | Rep. |
|---|---|---|---|---|
00010 | UNH | Message header | M | 1 |
00020 | BGM | Beginning of message | M | 1 |
00030 | DTM | Date/time/period | C | ×9 |
00040 | FTX | Free text | C | ×9 |
00050 | CNT | Control total | C | ×9 |
00060 | SG1 | Group (×99) | C | ×99 |
00070 | DOC | Document/message details | M | 1 |
00080 | DTM | Date/time/period | C | ×99 |
00090 | SG2 | Group (×9) | C | ×9 |
00100 | RFF | Reference | M | 1 |
00110 | DTM | Date/time/period | C | ×9 |
00120 | SG3 | Group (×9) | C | ×9 |
00130 | NAD | Name and address | M | 1 |
00140 | CTA | Contact information | C | ×9 |
00150 | COM | Communication contact | C | ×9 |
00160 | SG4 | Group (×99999) | C | ×99999 |
00170 | ERC | Application error information | M | 1 |
00180 | FTX | Free text | C | 1 |
00190 | SG5 | Group (×9) | C | ×9 |
00200 | RFF | Reference | M | 1 |
00210 | FTX | Free text | C | ×9 |
00220 | UNT | Message trailer | M | 1 |
Detail
No segment in this section.
Summary
No segment in this section.
Changes vs D.96A
Top-level differences between D.96A and D.18B for the APERAK message (segments directly inside header / detail / summary, ignoring nested groups). The comparison is indicative: a given tag may have evolved inside nested groups without showing up in this synthesis.
Segments added vs D.96A
DOCin the header section (status M, repeat ×1) — not present at the top of the corresponding D.96A section.
Structural example
Minimal example of an APERAK D.18B message with mandatory segments only. The goal is to show the exact version declared in UNH (APERAK:D:18B:UN) — not to replicate a full business case (see the APERAK D.96A page for an annotated example).
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL018001'
UNH+1+APERAK:D:18B:UN'
BGM+313+APERAK-2026-0099+9'
DTM+137:20260514:102'
CNT+2:1'
RFF+ON:ORDER789'
DTM+171:20260512:102'
NAD+SU+5410000000456::9'
ERC+27:::1'
FTX+AAO+1+++Unknown item reference 3520000099999'
UNT+10+1'
UNZ+1+CTRL018001' Common errors
- Misaligned UNH tokens — The
UNH+...+APERAK:D:18B:UNtoken must reflect exactly the directory in use — a mismatch between the UNH release and the release agreed with the partner is rejected by every strict validator. - Wrong UNT segment count — The value after
UNT+must include UNH and UNT themselves. By far the most common sender-side error, regardless of the directory in use. - Stale code lists — Between D.96A and D.18B, several code lists received new qualifiers (DTM status, RFF qualifier, NAD codes…). Reusing an older directory’s code tables triggers warnings or even rejections depending on the partner’s strict-conformance mode.
Related messages
Other versions of this message available on ediverse.io: APERAK D.96A, APERAK D.01B, APERAK D.10A, APERAK D.16B, APERAK D.21B, APERAK D.24A, APERAK D.97A, APERAK D.99B, APERAK D.00B, APERAK D.02B, APERAK D.05A, APERAK D.08A, APERAK D.13B, APERAK D.20B.
X12 functional equivalent: X12 824.