Invoice number

Error BR-02 EN 16931

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

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:ID within ram:ExchangedDocument is empty. The invoice number BT-1 is therefore missing.

What the rule means

BT-1 identifies the invoice as an individual document. The invoice number makes it possible to refer to that specific invoice.

Affected fields BT-1
Please add the invoice number

The invoice number is missing from ram:ExchangedDocument. You can enter the number in ram:ID.

What to do
  1. Check the value of FacturXInvoice.InvoiceNo.
  2. Ensure that the invoice number in ram:ExchangedDocument/ram:ID is not empty.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ExchangedDocument>
  <ram:ID/>
</ram:ExchangedDocument>
✓ Correct
<ram:ExchangedDocument>
  <ram:ID>INV-2026-001</ram:ID>
</ram:ExchangedDocument>
Check in FactoorSharp
  • FacturXInvoice.InvoiceNo (BT-1)
Technical details

The XPath checks whether ram:ExchangedDocument/ram:ID contains a non-empty value.

Where the rule applies

The rule applies to ram:ID in the invoice document ram:ExchangedDocument.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(rsm:ExchangedDocument/ram:ID !='')