PEPPOL-EN16931-R101: Element Document reference can only be used for Invoice line object
Peppol BIS Billing 3.0.21 · UBL
Original rule text
[PEPPOL-EN16931-R101]-Element Document reference can only be used for Invoice line object
(not(cac:DocumentReference) or (cac:DocumentReference/cbc:DocumentTypeCode='130'))PEPPOL-EN16931-R101 is a fatal rule in the format layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.
What this rule requires
In UBL invoice lines or credit note lines, the element cac:DocumentReference may be absent (not(cac:DocumentReference)). If it is present, its child cbc:DocumentTypeCode must be exactly '130'. The message states that Document reference can only be used for Invoice line object, and the test enforces this by requiring the type code 130 when the element exists.
How to fix
For each cac:InvoiceLine or cac:CreditNoteLine, either remove the cac:DocumentReference element, or ensure that inside it the cbc:DocumentTypeCode has the value 130.
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 PEPPOL-EN16931-R101.
Validate an invoice against these rules · All release changes