What it means
The unitCode attribute (BT-130) on ram:BilledQuantity, which holds the invoiced quantity (BT-129), is checked against code list 15 in FACTUR-X_EXTENDED_codedb.xml. Examples include C62 for a count of items, HUR for hours, KGM for kilograms, MTR for metres and LTR for litres. An empty value passes this rule; the rule does not require the attribute to exist.
Why it matters
The unit code identifies what the invoiced quantity measures. Using a code from the profile's list gives the unit a standard meaning.
How to fix it
Check the actual unit of measure for the affected line. Correct unitCode on ram:BilledQuantity inside ram:SpecifiedLineTradeDelivery to the matching allowed code, rather than free text such as pcs, Stk or kg. Use C62 only if the quantity is a count of items, not as a fallback for another unit. Export the corrected file and check it again.
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 EXTENDED | 1.0.9-2 |
| ZUGFeRD 2.5 EXTENDED | 2.5.2 |
Check your file
Drop your e-invoice to see whether FX-SCH-A-001076 still fails, and which other rules do.
Related rules
- FX-SCH-A-001077 Add a unit code to the free-of-charge quantity
- FX-SCH-A-001078 Use an allowed unit code for the free-of-charge quantity
- FX-SCH-A-001079 Add the line delivery note date format attribute
- FX-SCH-A-001080 Use an allowed format code for the line delivery note date
- FX-SCH-A-001081 Add the line despatch advice date format attribute
- FX-SCH-A-001082 Use an allowed format code for the line despatch advice date