Peppol BIS Billing 3.0.21 · UBL

UBL-CR-541: A UBL invoice should not include the InvoiceLine DocumentReference VersionID

Peppol BIS Billing 3.0.21 · UBL

warningschema

Original rule text

[UBL-CR-541]-A UBL invoice should not include the InvoiceLine DocumentReference VersionID

Stored validation assertion
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cbc:VersionID)

UBL-CR-541 is a warning rule in the schema layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is flagged but not rejected.

What this rule requires

The rule advises that a UBL invoice or credit note should not contain a cbc:VersionID inside any cac:DocumentReference that belongs to an cac:InvoiceLine or cac:CreditNoteLine. The test checks that no such line-level document reference has a version identifier. This is a warning, so the document is not rejected because of it, but the validator recommends removing the element.

How to fix

Remove cbc:VersionID from every cac:DocumentReference found within cac:InvoiceLine or cac:CreditNoteLine. If the invoice is generated by software, adjust the mapping so that line-level document references do not output a version identifier.

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-CR-541.

Validate an invoice against these rules · All release changes