Each invoiced quantity must come with its unit of measure: unit, hour, day, kilogram… The e-invoice does not spell it out but uses a standard code, which your software picks from the unit you select.
Common causes
A flat-fee line without a unit.
A unit typed as free text ("flat fee", "lot") that the software does not turn into a code.
An item created without a unit in the software's catalogue.
How to fix it
Choose a unit for each item or service in your software, for example "unit", "hour" or "day".
For a flat-fee service, choose the unit "unit".
If the unit is chosen but missing from the e-invoice, report it to the software's publisher, quoting BR-23.
Why it matters
BR-23 is a rule of the European e-invoicing standard, EN 16931. The French, German (XRechnung) and European (Peppol) rules build on this standard, so an invoice that fails BR-23 also fails each of them.
In public procurement, buyers in the European Union must accept e-invoices that follow this standard (Directive 2014/55/EU).
Does your invoice pass BR-23?
Check it against this rule only. The check runs in your browser, so nothing is sent.
Technical details
If you are interested in the technical side: the data the rule checks in the invoice file.
The unit is BT-130, an attribute of the quantity BT-129: unitCode of ram:BilledQuantity in CII, of cbc:InvoicedQuantity (or cbc:CreditedQuantity) in UBL. The code comes from UN/ECE Recommendations 20 and 21, as rule BR-CL-23 requires: for example C62 (unit), HUR (hour), DAY (day), KGM (kilogram).
The Factur-X XML schema leaves this attribute optional: BR-23 makes it mandatory. The example invoice removes the unit from its first line's quantity.
EN 16931 concepts (business terms, rules): these pages are an implementation of the semantic data model EN 16931-1:2017 and its two mandatory syntaxes (CEN/TS 16931-2:2017), and reproduce parts of them with the permission of CEN and its member national standardisation bodies. CEN and the national standardisation bodies bear no liability for the content and implementation of these pages, and give no warranty, express or implied, for any purpose. In case of doubt, always refer to the official text of the standard.