Official rule text
[BR-CL-23]-Unit code MUST be coded according to the UN/ECE Recommendation 20 with Rec 21 extensionAssertion BR-CL-23 in the EN 16931 validation artefacts (CEN/TC 434), validation-1.3.16, UBL and CII (same wording).
What it means
Units must be UN/ECE Rec. 20/21 codes. Codes must come from the lists EN 16931 prescribes.
Docfaro reports a breach of BR-CL-23 as an error.
Where the data sits
The business terms this rule checks, and the element that carries each of them in the two syntaxes EN 16931 allows.
BT-130 Invoiced quantity unit of measure code
- UBL 2.1
/Invoice/cac:InvoiceLine/cbc:InvoicedQuantity/@unitCode- CII D16B
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode
Prefixes: cbc and cac are the UBL basic and aggregate components; rsm, ram and udt the CII namespaces. In a UBL credit note the root is CreditNote and lines are cac:CreditNoteLine.
How to fix it
Use codes instead of text: C62 for pieces, HUR for hours, KGM for kilograms.
Where the rule applies
| Defined in | EN 16931 validation artefacts validation-1.3.16 |
|---|---|
| Syntaxes | UBL and CII |
| Official severity | error (fatal) |
| Docfaro reports it as | Error |
| Docfaro checks it for | XRechnung, Peppol BIS Billing, and ZUGFeRD / Factur-X in the profiles BASIC, EN 16931 (COMFORT) and EXTENDED. MINIMUM, BASIC WL and ZUGFeRD 1.0 do not carry a full EN 16931 data set and only get basic checks. |
| Rule group | Code list rules (BR-CL) |
Related rules
Sources
- EN 16931 validation artefacts validation-1.3.16 (Schematron, EUPL-1.2)CEN/TC 434 and European Commission, GitHub
- Validator-Konfiguration XRechnung 3.0.2, Release 2026-08-31 (XSD UBL 2.1 und CII D16B, Schematron EN 16931 und XRechnung)KoSIT auf GitHub
- Revised European standard on eInvoicing EN 16931-1:2026Europäische Kommission
Last reviewed: