Peppol BIS Billing 3.0.20 · UBL

UBL-SR-52: Document reference shall occur maximum once

Peppol BIS Billing 3.0.20 · UBL

fatalschema

Original rule text

[UBL-SR-52]-Document reference shall occur maximum once

Stored validation assertion
count(cac:DocumentReference) <= 1

UBL-SR-52 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is rejected.

What this rule requires

For each cac:InvoiceLine or cac:CreditNoteLine, the count of cac:DocumentReference child elements must be at most 1. If a line contains more than one document reference, the document fails validation with this fatal rule.

How to fix

In every cac:InvoiceLine and cac:CreditNoteLine, ensure there is no more than one cac:DocumentReference. If multiple references exist in a line, remove or consolidate them so only one remains. If the producing system generates multiple document references per line, change it to emit only one.

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

Where to go next

No published Peppol BIS Billing UBL release comparison lists a change to UBL-SR-52.

Validate an invoice against these rules · All release changes