Skip to content

Error

FX-SCH-A-001086: Quantity per package unit code must be an allowed code

In short

Error: fails the selected checks.

FX-SCH-A-001086 means the unitCode value on an invoice line's ram:PerPackageUnitQuantity is not in the Extended profile's unit code list. Replace it with a listed code for the contents, such as C62 for a count or KGM for kilograms, then export and recheck.

On this page

What it means

This rule compares a non-empty unitCode value on ram:PerPackageUnitQuantity inside ram:SpecifiedLineTradeDelivery with the Extended profile's unit code list. An absent or empty value does not fail this test. FX-SCH-A-001085 separately checks that the attribute exists.

Why it matters

The unit code gives the quantity inside each package a consistent meaning across software.

How to fix it

Correct the unit for the quantity per package in your invoice data. In XML, replace unitCode on ram:PerPackageUnitQuantity inside the line's ram:SpecifiedLineTradeDelivery with the appropriate listed code. Examples include C62 for a count, KGM for kilograms and LTR for litres. 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
Rule text from phive-rules 4.6.4.

Check your file

Drop your e-invoice to see whether FX-SCH-A-001086 still fails, and which other rules do.

Updated 6 November 2026