What it means
This rule compares a non-empty unitCode value on ram:PackageQuantity inside ram:SpecifiedLineTradeDelivery with the Extended profile's unit code list. An absent or empty value does not fail this test. FX-SCH-A-001083 separately checks that the attribute exists.
Why it matters
Using the profile's unit codes gives the quantity a consistent meaning across software.
How to fix it
Correct the package quantity's unit in your invoice data. In XML, replace unitCode on ram:PackageQuantity inside the line's ram:SpecifiedLineTradeDelivery with a code from the profile's list. For a plain count, C62 identifies the unit one. Do not substitute free text such as pcs. Export and recheck your file.
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-001084 still fails, and which other rules do.
Related rules
- FX-SCH-A-001085 Quantity per package on a line needs a unit code
- FX-SCH-A-001086 Quantity per package unit code must be an allowed code
- FX-SCH-A-001087 Receiving advice date on a line needs a date format code
- FX-SCH-A-001088 Receiving advice date on a line must use an allowed format code
- FX-SCH-A-001089 Line delivery party may have only one identifier
- FX-SCH-A-001090 Line delivery party may have only one role code