APERAK message: how to read it and find what was rejected
An APERAK is the application error message of the German energy market: your partner read your UTILMD, MSCONS or INVOIC and rejects part of it. Here is an APERAK, segment by segment, and how to find the transaction it means.
What an APERAK is
In the German energy market communication (Marktkommunikation, MaKo), a market partner answers your messages twice. A CONTRL says whether the interchange could be read at all: syntax, character set, segment counts. An APERAK comes after the content was processed and says what could not be accepted: a market location that cannot be assigned, a start date in the past, a deadline that was missed.
APERAK is an EDIFACT message type (UN directory D.07B). The format version in force since 1 October 2026 is APERAK 2.2 (BNetzA Mitteilung Nr. 56). One APERAK can hold several errors, each one pointing to a whole message or to a single transaction of it.
An APERAK example
This APERAK is one of the test files we use for EDI Reader Energie (fictitious data: test market partner IDs, the sample name Mustermann). It rejects three things in one UTILMD, shown one segment per line:
UNB+UNOC:3+9900000000028:500+9900000000011:500+261105:1000+REF-APER-1' UNH+APE-1+APERAK:D:07B:UN:2.2' BGM+313+APE-DOC-1' DTM+137:202611051000?+00:303' RFF+ACE:DOC-UTIL-1' NAD+MR+9900000000011::293' NAD+MS+9900000000028::293' ERC+Z29' FTX+ABO+++Marktlokation 52000000019 von Mustermann nicht zugeordnet' RFF+ACW:VG-1002' ERC+Z10' FTX+ABO+++Lieferbeginn liegt in der Vergangenheit' RFF+ACW:VG-1001' ERC+Z35' FTX+ABO+++Frist nicht eingehalten' RFF+ACW:DOC-UTIL-1' UNT+16+APE-1' UNZ+1+REF-APER-1'
Segment by segment
- UNH+APE-1+APERAK:D:07B:UN:2.2: the message header, with the type APERAK and the format version 2.2.
- BGM and DTM+137: the APERAK's own document number and its date and time.
- RFF+ACE:DOC-UTIL-1: the reference of the message being answered, here the document number (BGM) of the UTILMD.
- NAD+MR and NAD+MS: recipient and sender, as market partner IDs (MP-ID).
- ERC+Z29: one error, with its code. Every ERC opens a group that runs to the next ERC.
- FTX+ABO: the error text written by your partner, often the most useful line of the file.
- RFF+ACW:VG-1002: what the error refers to, here the transaction VG-1002 of the UTILMD; RFF+ACW:DOC-UTIL-1 means the whole message.
The codes (Z29, Z10, Z35) are defined in the APERAK documents that BDEW publishes as PDF; no spreadsheet of them exists. The FTX text next to each code usually says enough to act.
Finding the rejected message
The APERAK does not name a file. To find the original, search your outbox for its references: a value in RFF can be the interchange reference (UNB), the message reference (UNH), the document number (BGM) or a transaction ID (IDE+24) of the original. In the example, DOC-UTIL-1 is the BGM of the UTILMD, and VG-1001 and VG-1002 are two of its transactions:
UNH+MSG-1+UTILMD:D:11A:UN:S2.1' BGM+E01+DOC-UTIL-1+9' IDE+24+VG-1001' RFF+Z13:55001' IDE+24+VG-1002' RFF+Z13:55002'
RFF+Z13 is the Prüfidentifikator of each transaction: 55001 for VG-1001, 55002 for VG-1002. On a busy day the outbox holds hundreds of UTILMD, and the same transaction ID can appear in a message and in its correction, so check the sender, the recipient and the date as well.
In VS Code, EDI Reader Energie does this search for you. Free, on the APERAK: “3 errors (Z29, Z10, Z35)” and whether the original message is in the folder, an open editor or the workspace. Pro opens the UTILMD next to the APERAK and marks each error at its place, also in the Problems view:
- APERAK Z29: Marktlokation 52000000019 von Mustermann nicht zugeordnet → transaction VG-1002 (PID 55002)
- APERAK Z10: Lieferbeginn liegt in der Vergangenheit → transaction VG-1001 (PID 55001)
- APERAK Z35: Frist nicht eingehalten → whole message DOC-UTIL-1
Common causes of a rejection
- The market location is unknown to the partner or assigned to someone else: check the MaLo-ID (LOC+Z16) and its check digit.
- A date is not accepted: start of supply in the past, or a deadline (Frist) missed for that process.
- The format version is not the one in force on the message date: a UTILMD S2.1 sent after 1 October 2026 instead of S2.2. EDI Reader Energie warns about this before you send.
- The transaction was sent twice, or a correction refers to a transaction the partner never accepted.
- The Prüfidentifikator does not match the process: the partner expects another use case for that transaction.
EDI Reader Energie does not check messages against the AHB: it shows what the message contains and where each APERAK error points, so you can see the cause in the original.
Frequently asked questions
What is an APERAK message?
An EDIFACT application error and acknowledgement message. In the German energy market it tells the sender which parts of a UTILMD, MSCONS, INVOIC or other message could not be processed, with an error code, a text and a reference to the transaction concerned.
What is the difference between APERAK and CONTRL?
A CONTRL answers the syntax of an interchange: it is read or rejected before anything is processed. An APERAK answers the content, after processing. A message can pass the CONTRL and still get an APERAK.
Where do I find the meaning of an APERAK error code?
In the APERAK documents published by BDEW (PDF) and in the FTX text your partner writes next to the code. If you keep your own csv with the columns “Code” and “Beschreibung”, EDI Reader Energie shows your label on hover and in reports.
See your own APERAK and CONTRL the same way
EDI Reader Energie for VS Code names every segment of your UTILMD, MSCONS, APERAK and CONTRL, shows the format version and Prüfidentifikator of each transaction, counts the errors of a rejection and says whether the original message is in the folder, on your machine. Free, no account; Pro opens the original and marks each error at its transaction, segment and data element.