UBL-SR-02: Receive advice identifier shall occur maximum once
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-SR-02]-Receive advice identifier shall occur maximum once
(count(cac:ReceiptDocumentReference/cbc:ID) <= 1)UBL-SR-02 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
The rule checks UBL Invoice and CreditNote documents. It requires that the receive advice identifier element cac:ReceiptDocumentReference/cbc:ID occurs at most once in total. The test (count(cac:ReceiptDocumentReference/cbc:ID) <= 1) fails if two or more such cbc:ID elements are present under any cac:ReceiptDocumentReference elements. Because the severity is fatal, the document is rejected.
How to fix
Remove or merge the duplicate cbc:ID values so that the total number of cac:ReceiptDocumentReference/cbc:ID elements in the document is 0 or 1. If your system generates multiple cac:ReceiptDocumentReference entries, ensure only one of them contains a cbc:ID, or output a single reference with one ID. The rule does not prescribe the value, only that there cannot be more than one occurrence.
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-02.
Validate an invoice against these rules · All release changes