Peppol BIS Billing 3.0.21 · UBL

UBL-CR-542: A UBL invoice should not include the InvoiceLine DocumentReference DocumentStatusCode

Peppol BIS Billing 3.0.21 · UBL

warningschema

Original rule text

[UBL-CR-542]-A UBL invoice should not include the InvoiceLine DocumentReference DocumentStatusCode

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

UBL-CR-542 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 checks that a UBL invoice or credit note does not contain a cbc:DocumentStatusCode element inside any cac:DocumentReference that is a child of cac:InvoiceLine or cac:CreditNoteLine. Because the severity is warning, the validator reports an advisory warning when such an element is present; the document is not rejected for this rule. The test is not(...), so any occurrence at those line-level document reference paths triggers the warning.

How to fix

Remove the cbc:DocumentStatusCode element from every cac:DocumentReference within cac:InvoiceLine or cac:CreditNoteLine.

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-542.

Validate an invoice against these rules · All release changes