Invoice specification identifier

Error BR-01 EN 16931

An Invoice shall have a Specification identifier (BT-24).

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

The invoice does not contain a non-empty ram:ID within ram:GuidelineSpecifiedDocumentContextParameter. The specification identifier BT-24 is therefore missing.

What the rule means

BT-24 identifies the specification according to which the invoice was created. This identifier associates the invoice with its intended format and rules.

Affected fields BT-24
Please add the invoice specification identifier

The specification identifier is missing from ram:GuidelineSpecifiedDocumentContextParameter in the invoice. You can add the identifier in this document context.

What to do
  1. Check the values of FacturXInvoice.Profile and FacturXInvoice.SpecificationIdentifier, as well as the available entries in SpecificationIdentifiers.
  2. Ensure that ram:GuidelineSpecifiedDocumentContextParameter contains a non-empty ram:ID.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:GuidelineSpecifiedDocumentContextParameter>
  <ram:ID/>
</ram:GuidelineSpecifiedDocumentContextParameter>
✓ Correct
<ram:GuidelineSpecifiedDocumentContextParameter>
  <ram:ID>urn:example:invoice-specification</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
Check in FactoorSharp
  • FacturXInvoice.Profile (BT-24)
  • FacturXInvoice.SpecificationIdentifier (BT-24)
  • SpecificationIdentifiers (BT-24)
Technical details

The XPath checks whether ram:ID is present and non-empty in the specified document context.

Where the rule applies

The rule applies in the invoice document context to ram:ID within ram:GuidelineSpecifiedDocumentContextParameter.

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