Error codes

BR-02: Invoice number (BT-1) is missing

Severity: fatal ยท Syntax: CII, UBL

Official message

An Invoice shall have an Invoice number (BT-1).

What this means

BT-1, the invoice number, must be non-empty after normalize-space. UBL: the invoice cbc:ID. CII: ram:ID in ExchangedDocument.

Typical cause

The software's number series did not write the field.

How to fix it

Set a unique number. The rule does not check whether the number was used before.

UBL

<cbc:ID>R2026-001</cbc:ID>

CII

<ram:ID>R2026-001</ram:ID>

Business term

BT-1

Related rules

Context and assertion

UBL /ubl:Invoice | /cn:CreditNote

CII /rsm:CrossIndustryInvoice

UBL

normalize-space(cbc:ID) != ''

CII

normalize-space(rsm:ExchangedDocument/ram:ID) != ''

Check a file now, free of charge

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

Questions

What does BR-02 actually check?

BT-1, the invoice number, must be non-empty after normalize-space. UBL: the invoice cbc:ID. CII: ram:ID in ExchangedDocument.

How do I fix BR-02?

Set a unique number. The rule does not check whether the number was used before.

If BR-02 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.