InvoiceValidator.eu

UBL-SR-07

fatalEN 16931syntax binding ruleUBL

If there is a preceding invoice reference, the preceding invoice number shall be present

Why it fails

A preceding invoice reference group is present but carries no invoice number.

How to fix it

Add BT-25 — the number of the invoice being corrected or credited — in BillingReference/InvoiceDocumentReference/cbc:ID, or remove the group.

What the validator checks

UBL — context cac:BillingReference

(cac:InvoiceDocumentReference/cbc:ID)

Related rules

Part of UBL-SR — UBL cardinality.

Check your own invoice against UBL-SR-07

…or paste the XML instead

Nothing is stored, and the whole invoice is checked, not just this rule. A PDF only works if it is Factur-X / ZUGFeRD — a PDF with the invoice XML inside it.