PEPPOL-EN16931-R008 Factur-X / XP Z12-012 EU SCHEMATRON WARNING

PEPPOL-EN16931-R008 — Document Must Not Contain Empty XML Elements

Affected EN 16931 Terms:
BG-13BT-72
Normative Specification: Peppol BIS Billing 3.0 & Factur-X Schematron (PEPPOL-EN16931-R008) Official specification ↗

Rule Definition & Compliance Impact

Rule PEPPOL-EN16931-R008 forbids empty or self-closing XML elements anywhere in an electronic invoice (fatal in Peppol BIS 3.0 / XRechnung UBL; Schematron hygiene rule in Factur-X CII).

Common ERP & Exporter Root Causes

Template-based XML serializers emit empty optional tags like <cbc:AdditionalStreetName/> in UBL, or emit an empty <ram:ApplicableHeaderTradeDelivery /> in CII because XSD requires ApplicableHeaderTradeDelivery to exist.

How to Fix This Violation

Strip all empty optional XML tags before serialization. In CII, where ram:ApplicableHeaderTradeDelivery is XSD-mandatory inside SupplyChainTradeTransaction, populate it with ActualDeliverySupplyChainEvent (BT-72) so it is never empty.

Non-Compliant vs. Compliant Payload Comparison

UN/CEFACT CII D16B (Factur-X / ZUGFeRD)

REJECTED
<rsm:SupplyChainTradeTransaction>
  <ram:ApplicableHeaderTradeAgreement>...</ram:ApplicableHeaderTradeAgreement>
  <!-- Empty self-closing element triggers PEPPOL-EN16931-R008! -->
  <ram:ApplicableHeaderTradeDelivery />
  <ram:ApplicableHeaderTradeSettlement>...</ram:ApplicableHeaderTradeSettlement>
</rsm:SupplyChainTradeTransaction>
COMPLIANT
<ram:ApplicableHeaderTradeDelivery>
  <ram:ActualDeliverySupplyChainEvent>
    <ram:OccurrenceDateTime>
      <udt:DateTimeString format="102">20261117</udt:DateTimeString>
    </ram:OccurrenceDateTime>
  </ram:ActualDeliverySupplyChainEvent>
</ram:ApplicableHeaderTradeDelivery>

OASIS UBL 2.1 (XRechnung / Peppol / RO e-Factura)

REJECTED
<cac:AccountingSupplierParty>
  <cac:Party>
    <cac:PostalAddress>
      <cbc:StreetName>Rue de Rivoli 10</cbc:StreetName>
      <cbc:AdditionalStreetName></cbc:AdditionalStreetName>
    </cac:PostalAddress>
  </cac:Party>
</cac:AccountingSupplierParty>
COMPLIANT
<cac:AccountingSupplierParty>
  <cac:Party>
    <cac:PostalAddress>
      <cbc:StreetName>Rue de Rivoli 10</cbc:StreetName>
      <!-- Optional empty AdditionalStreetName omitted completely -->
    </cac:PostalAddress>
  </cac:Party>
</cac:AccountingSupplierParty>

Test Your Invoice Against This Rule Locally