What it means
An invoice line's billed quantity (BT-129) has a unit of measure (BT-130). In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty unitCode attribute on ram:SpecifiedLineTradeDelivery/ram:BilledQuantity against the permitted unit code list. It checks the code, not whether the quantity or chosen unit correctly describes the supply.
Why it matters
The quantity and its unit describe how much you are billing. A standard unit code distinguishes pieces, hours, weights and other measures.
How to fix it
Check the actual unit represented by the billed quantity and select its matching code. Do not use C62 as a fallback for an unknown unit. If you are unsure, confirm the intended measure rather than guessing. In XML, correct unitCode on the line's ram:SpecifiedLineTradeDelivery/ram:BilledQuantity. Export and recheck.
Once the file is corrected, check it again for free: Validate a ZUGFeRD invoice
Or fix the invoice in a form and download the corrected file, for 1 credit: Fix a rejected e-invoice Beta
The rule as published
Value of '@unitCode' is not allowed. Where this rule applies
| Rule set | Version |
|---|---|
| Factur-X 1.09 BASIC | 1.0.9-2 |
| ZUGFeRD 2.5 BASIC | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-000534 still fails, and which other rules do.
Related rules
- FX-SCH-A-000535 Line VAT details need exactly one tax type element
- FX-SCH-A-000536 Line VAT details need exactly one VAT category element
- FX-SCH-A-000537 Use a valid VAT category code on the line
- FX-SCH-A-000538 Use an allowed tax type code on the line
- FX-SCH-A-000539 Add the line period end date's format attribute
- FX-SCH-A-000540 Use a permitted line period end date format code