Peppol BIS Billing 3.0.21 · UBL

PEPPOL-EN16931-R008: Document MUST not contain empty elements

Peppol BIS Billing 3.0.21 · UBL

fatalformat

Original rule text

[PEPPOL-EN16931-R008]-Document MUST not contain empty elements.

Stored validation assertion
false()

PEPPOL-EN16931-R008 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

The message says a document must not contain empty elements. The rule selects every element that has no child elements and no text other than whitespace, for example <cbc:Note/> or <cbc:Note> </cbc:Note>, and the test is false(), so each one is reported. The rule set also contains a second variant of this rule whose test is self::cbc:ID[parent::cac:OrderReference], which means an empty cbc:ID inside cac:OrderReference passes that variant.

How to fix

Find every empty element and either remove it or give it its value.

Guidance on this rule. The original text above is authoritative.

Where to go next

PEPPOL-EN16931-R008 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes