Error codes

BR-16: No invoice line (BG-25)

Severity: fatal · Syntax: CII, UBL

Official message

An Invoice shall have at least one Invoice line (BG-25).

What this means

The invoice needs at least one invoice line BG-25. UBL checks exists(cac:InvoiceLine) or exists(cac:CreditNoteLine). An invoice with only a document allowance and no line does not pass this rule.

Typical cause

The document was exported as a header without lines.

How to fix it

Add at least one InvoiceLine or CreditNoteLine.

UBL

<cac:InvoiceLine>
  <cbc:ID>1</cbc:ID>
</cac:InvoiceLine>

CII

<ram:IncludedSupplyChainTradeLineItem>
  <ram:AssociatedDocumentLineDocument>
    <ram:LineID>1</ram:LineID>
  </ram:AssociatedDocumentLineDocument>
</ram:IncludedSupplyChainTradeLineItem>

Business term

BG-25

Related rules

Context and assertion

UBL /ubl:Invoice | /cn:CreditNote

CII /rsm:CrossIndustryInvoice

UBL

exists(cac:InvoiceLine) or exists(cac:CreditNoteLine)

CII

//ram:IncludedSupplyChainTradeLineItem

Check a file now, free of charge

curl -F "file=@rechnung.xml" https://checkxrechnung.com/v1/validate

Questions

What does BR-16 actually check?

The invoice needs at least one invoice line BG-25. UBL checks exists(cac:InvoiceLine) or exists(cac:CreditNoteLine). An invoice with only a document allowance and no line does not pass this rule.

How do I fix BR-16?

Add at least one InvoiceLine or CreditNoteLine.

If BR-16 passes, is the invoice legally compliant?

No. This page helps you read this one Schematron assertion. A pass is not a statement about tax law, portal acceptance, or bank overlays.