Peppol BIS Billing 3.0.21 · UBL

UBL-SR-56: An Invoice shall contain maximum one Originator document reference identifier (BT-17)

Peppol BIS Billing 3.0.21 · UBL

fatalschema

Original rule text

[UBL-SR-56]-An Invoice shall contain maximum one Originator document reference identifier (BT-17).

Stored validation assertion
count(cac:OriginatorDocumentReference/cbc:ID) <= 1

UBL-SR-56 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected. It refers to BT-17.

What this rule requires

The rule requires that in an invoice or credit note, the cac:OriginatorDocumentReference/cbc:ID element appears at most once. The test counts every cbc:ID under cac:OriginatorDocumentReference; if the total count is greater than 1, the document fails validation with severity fatal. A document with zero or one such identifier is valid.

How to fix

Remove all but one cac:OriginatorDocumentReference/cbc:ID element, or remove the extra cac:OriginatorDocumentReference parent elements that contain an cbc:ID, so that at most one identifier remains. If the business context requires an identifier, keep exactly one; otherwise, zero is also acceptable.

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

Where to go next

UBL-SR-56 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes