E-invoice validation error codes (EN 16931 / XRechnung) → BR-21
BR-21
Each Invoice line (BG-25) shall have an Invoice line identifier (BT-126).
Field
BT-126 — Invoice line identifier (cac:InvoiceLine/cbc:ID)
What it means
Every line needs its own identifier, unique within the invoice — usually just 1, 2, 3…
Typical cause
cbc:ID is missing on one or more InvoiceLine elements.
How to fix it
Give every line a sequential ID.
Example
Wrong
<cac:InvoiceLine>
<cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
</cac:InvoiceLine>
Right
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity>1</cbc:InvoicedQuantity>
</cac:InvoiceLine>