UBL-CR-545: A UBL invoice should not include the InvoiceLine DocumentReference ValidityPeriod
Peppol BIS Billing 3.0.20 · UBL
Original rule text
[UBL-CR-545]-A UBL invoice should not include the InvoiceLine DocumentReference ValidityPeriod
not((cac:InvoiceLine|cac:CreditNoteLine)/cac:DocumentReference/cac:ValidityPeriod)UBL-CR-545 is a warning rule in the schema layer of Peppol BIS Billing 3.0.20 · UBL. An invoice that breaks it is flagged but not rejected.
What this rule requires
The rule warns when a UBL invoice or credit note contains a cac:ValidityPeriod inside the cac:DocumentReference of any cac:InvoiceLine or cac:CreditNoteLine. The test requires that no such element exists; if it is present, the validator reports this advisory warning, but the document is not rejected because the severity is warning.
How to fix
Remove the cac:ValidityPeriod element from every line-level cac:DocumentReference (cac:InvoiceLine/cac:DocumentReference and cac:CreditNoteLine/cac:DocumentReference). In the producing system, ensure line document references are emitted without a validity period to clear this warning.
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-545.
Validate an invoice against these rules · All release changes