Skip to content

Error

FX-SCH-A-001083: Package quantity on a line needs a unit code

In short

Error: fails the selected checks.

FX-SCH-A-001083 means ram:PackageQuantity on an invoice line is missing its unitCode attribute. Add the code for the unit you use, such as C62 for a count, then export and recheck your file.

On this page

What it means

For each ram:PackageQuantity inside ram:SpecifiedLineTradeDelivery in the Extended profile, this rule checks that the unitCode attribute exists. It does not check the attribute's value.

Why it matters

The unit identifies what your package quantity measures.

How to fix it

Check the package quantity and its unit in your invoice data. In XML, add unitCode to ram:PackageQuantity inside the line's ram:SpecifiedLineTradeDelivery, using the code for the unit you report. If you have no package quantity to report, remove ram:PackageQuantity. 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

Attribute '@unitCode' is required in this context.

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-001083 still fails, and which other rules do.

Updated 6 November 2026