UBL-SR-04: Invoice object identifier shall occur maximum once
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[UBL-SR-04]-Invoice object identifier shall occur maximum once
(count(cac:AdditionalDocumentReference[cbc:DocumentTypeCode='130']/cbc:ID) <= 1)UBL-SR-04 is a fatal rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
In a UBL Invoice or CreditNote, the rule allows at most one invoice object identifier. The test counts every cbc:ID inside cac:AdditionalDocumentReference elements whose cbc:DocumentTypeCode equals 130; if that count is greater than 1, the document fails validation.
How to fix
Ensure that among all cac:AdditionalDocumentReference elements with cbc:DocumentTypeCode 130 there is at most one cbc:ID. If more than one such cbc:ID exists, remove the extra IDs or keep only one cac:AdditionalDocumentReference of that type that contains an ID.
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-04.
Validate an invoice against these rules · All release changes