ediverse Explore the platform

Spotlight PEPPOL BIS Billing 3.0 The EU e-invoicing mandate is here — France Sept 2026, Belgium Jan 2026, Germany 2025.
APERAK D.05A

APERAK — EDIFACT Application Error and Acknowledgement Message (D.05A)

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.05A.

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.05A. 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.05A 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.

Pos.TagNameSRep.
0010UNHMessage headerM1
0020BGMBeginning of messageM1
0030DTMDate/time/periodC×9
0040FTXFree textC×9
0050CNTControl totalC×9
0060  SG1Group (×99)C×99
0070  DOCDocument/message detailsM1
0080  DTMDate/time/periodC×99
0090    SG2Group (×9)C×9
0100    RFFReferenceM1
0110    DTMDate/time/periodC×9
0120      SG3Group (×9)C×9
0130      NADName and addressM1
0140      CTAContact informationC×9
0150      COMCommunication contactC×9
0160        SG4Group (×99999)C×99999
0170        ERCApplication error informationM1
0180        FTXFree textC1
0190          SG5Group (×9)C×9
0200          RFFReferenceM1
0210          FTXFree textC×9
0220UNTMessage trailerM1

Detail

No segment in this section.

Summary

No segment in this section.

Changes vs D.96A

Top-level differences between D.96A and D.05A 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

  • DOC in 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.05A message with mandatory segments only. The goal is to show the exact version declared in UNH (APERAK:D:05A:UN) — not to replicate a full business case (see the APERAK D.96A page for an annotated example).

edifact aperak-d05a-example.edi
UNB+UNOC:3+5410000000123:14+5410000000456:14+260514:1430+CTRL005001'
UNH+1+APERAK:D:05A: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+CTRL005001'

Common errors

  • Misaligned UNH tokens — The UNH+...+APERAK:D:05A:UN token 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.05A, 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.

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.08A, APERAK D.13B, APERAK D.18B, APERAK D.20B.

X12 functional equivalent: X12 824.

← All EDIFACT versions