PEPPOL-EN16931-R008 error Peppol BIS 3.0
PEPPOL-EN16931-R008 — Document MUST not contain empty elements
What it means
Peppol rejects any element that has no text and no child elements. An empty tag is not the same as a missing one: if you have no value, leave the element out entirely.
What triggers it
Templates that always print a tag, e.g. <cbc:Note></cbc:Note>, <cbc:Telephone/> or an empty <cac:PartyName><cbc:Name></cbc:Name></cac:PartyName> when the field is blank.
How to fix it
Only write optional elements when they have a value:
<!-- wrong --> <cac:Contact> <cbc:Telephone></cbc:Telephone> <cbc:ElectronicMail>billing@example.com</cbc:ElectronicMail> </cac:Contact> <!-- right --> <cac:Contact> <cbc:ElectronicMail>billing@example.com</cbc:ElectronicMail> </cac:Contact>
A whitespace-only element counts as empty too. The official message carries the XPath of the offending element, which is the fastest way to find it.
Check your invoice now. Paste it into the free validator — it flags PEPPOL-EN16931-R008 and every other EN 16931, Peppol and XRechnung rule, each with the fix.
Or run the same check via API:
curl -X POST https://fakturwire.com/v1/validate \
-H "authorization: Bearer $FW_KEY" \
-d '{"invoice": { ... }, "profile": "peppol-bis-3"}'