Why BR-21 Fails
An InvoiceLine omits cbc:ID or CII AssociatedDocumentLineDocument/ram:LineID.
How to Fix BR-21
- Assign sequential line identifiers ('1', '2', '3', ...) to every line item in BT-126.
Each invoice line must have a non-empty identifier in BT-126.
An InvoiceLine omits cbc:ID or CII AssociatedDocumentLineDocument/ram:LineID.
<cac:InvoiceLine><cbc:ID></cbc:ID></cac:InvoiceLine>
<cac:InvoiceLine><cbc:ID>1</cbc:ID></cac:InvoiceLine>
npx @cairnkithq/facturkite-cli validate invoice.xml --profile xrechnung-ubl --format sarif
An InvoiceLine omits cbc:ID or CII AssociatedDocumentLineDocument/ram:LineID.
Yes. Paste your XML or upload a Hybrid PDF in FacturKite's free workbench or run npx @cairnkithq/facturkite-cli validate invoice.xml locally to verify BR-21 deterministically.
Every EN 16931 invoice must declare a non-empty specification identifier (CustomizationID / GuidelineSpecifiedDocumentContextParameter).
An invoice must contain a unique, non-blank invoice identifier in BT-1.
An invoice must contain a valid calendar issue date formatted as YYYY-MM-DD (or CII format 102 YYYYMMDD).
An invoice must declare a valid UNTDID 1001 numeric document type code (e.g., 380 for commercial invoice, 381 for credit note).
Every invoice must carry a valid 3-letter ISO 4217 currency code in BT-5.
An invoice must contain the full legal name of the seller in BT-27.