Skip to content

Error

FX-SCH-A-001152: An included product's quantity needs a unit attribute

In short

Error: fails the selected checks.

FX-SCH-A-001152 means an included product's quantity in ram:UnitQuantity is missing the unitCode attribute. Add the code for the unit in which that quantity is expressed.

On this page

What it means

For each ram:UnitQuantity within ram:IncludedReferencedProduct under the line's ram:SpecifiedTradeProduct, the rule checks that unitCode exists. It does not check whether the attribute is empty or whether its value is an allowed unit code.

Why it matters

The unit code states what the included product's quantity measures or counts.

How to fix it

Check the unit used for the included product's quantity. Add unitCode to the affected ram:UnitQuantity, using a code allowed by the Extended profile, such as C62 when the quantity counts individual units. Save or 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

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

Updated 6 November 2026