Home › Error code lexicon › BR-DE-21
BR-DE-21 Field BT-24 German business rules (BR-DE)

Fix BR-DE-21: Specification identifier (BT-24) does not match XRechnung

Das Element "Specification identifier" (BT-24) soll syntaktisch der Kennung des Standards XRechnung entsprechen.

BR-DE-21 in your own invoice? Upload the file and find every error in seconds.

What does BR-DE-21 mean?

The element "Specification identifier" (BT-24) should match the identifier of the XRechnung standard in its syntax. The rule comes from KoSIT (XRechnung) and is a warning: the invoice stays valid. For ZUGFeRD our validator reports it as info, because there the ZUGFeRD or EN 16931 identifier is right; that is harmless.

Common causes of BR-DE-21

How to fix BR-DE-21

  1. Find the faulty spot in the XML. Open the XML of the invoice and go to field BT-24 along this XPath://ram:GuidelineSpecifiedDocumentContextParameter/ram:ID
  2. Apply the fix. The Specification identifier (BT-24) must match the XRechnung identifier, for example 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0'.
  3. Validate again. Save the file and validate it again to check that BR-DE-21 is no longer reported.
Concrete fix

The Specification identifier (BT-24) must match the XRechnung identifier, for example 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0'.

XPath//ram:GuidelineSpecifiedDocumentContextParameter/ram:ID

Before / after: the XML example

This is the spot in question before and after the fix (Cross Industry Invoice, ZUGFeRD/Factur-X).

Wrong
<ram:GuidelineSpecifiedDocumentContextParameter>
  <ram:ID>urn:cen.eu:en16931:2017</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>
Correct
<ram:GuidelineSpecifiedDocumentContextParameter>
  <ram:ID>urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0</ram:ID>
</ram:GuidelineSpecifiedDocumentContextParameter>

Frequent questions about BR-DE-21

How do I fix BR-DE-21?
The Specification identifier (BT-24) must match the XRechnung identifier, for example 'urn:cen.eu:en16931:2017#compliant#urn:xeinkauf.de:kosit:xrechnung_3.0'.

Related error codes

Check BR-DE-21 automatically

Instead of digging through the XML by hand you can validate your ZUGFeRD or XRechnung file online: upload the PDF or the XML and you get every error with rule ID, affected field, fix and XPath, as a readable report or as JSON through the API.

Find every error automatically instead of searching by hand

Upload your ZUGFeRD, Factur-X or XRechnung file: you get every violation back with rule ID, field, fix and XPath.

Validate online for free
Check invoice