Peppol BIS Billing 3.0.21 · UBL

NL-R-009: For suppliers in the Netherlands, if an order line reference…

Peppol BIS Billing 3.0.21 · UBL

fatalcountry

Original rule text

[NL-R-009]-For suppliers in the Netherlands, if an order line reference (cac:OrderLineReference/cbc:LineID) is used, there must be an order reference on the document level (cac:OrderReference/cbc:ID)

Stored validation assertion
exists(/*/cac:OrderReference/cbc:ID)

NL-R-009 is a fatal rule in the country layer of Peppol BIS Billing 3.0.21 · UBL. An invoice that breaks it is rejected.

What this rule requires

For a supplier whose country code is NL (case-insensitive, ignoring surrounding whitespace), this rule applies when any cac:OrderLineReference/cbc:LineID is present. In that case the invoice must contain a document-level cac:OrderReference/cbc:ID. The rule is fatal, so if the supplier is Dutch and at least one line reference exists but no document-level order reference ID exists, validation fails.

How to fix

Add a cac:OrderReference containing cbc:ID directly under the invoice root. The rule only checks that this element exists; it does not validate its value. Alternatively, if the line reference is not intended, remove the cac:OrderLineReference/cbc:LineID elements, or correct the supplier country identification code if it is not actually NL.

Guidance on this rule. The original text above is authoritative.

Where to go next

NL-R-009 changed in 1 published Peppol BIS Billing UBL release comparison:

Validate an invoice against these rules · All release changes