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 invoice number in rsm:ExchangedDocument/ram:ID is missing or empty.

What the rule means

The invoice number identifies the invoice and allows it to be referenced unambiguously.

Affected fields BT-1
Please add the invoice number

Your invoice is missing an invoice number. Add a value so that the invoice can be identified.

What to do
  1. Add the invoice number through InvoiceNo.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<rsm:ExchangedDocument>
  <ram:ID/>
</rsm:ExchangedDocument>
✓ Correct
<rsm:ExchangedDocument>
  <ram:ID>INV-2026-001</ram:ID>
</rsm:ExchangedDocument>
Check in FactoorSharp
  • FacturXInvoice.InvoiceNo (BT-1)
Technical details

The test checks whether rsm:ExchangedDocument/ram:ID is not equal to the empty string.

Where the rule applies

The rule applies to ram:ID within rsm:ExchangedDocument in the invoice header.

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