Skip to content

Error

FX-SCH-A-000611: Check the unit for the price before discount

In short

Error: fails the selected checks.

FX-SCH-A-000611 means the unit code on the base quantity for a line's price before the price discount is not allowed. Correct the unitCode on ram:GrossPriceProductTradePrice/ram:BasisQuantity, for example to C62 for a unit or HUR for an hour.

On this page

What it means

This rule checks ram:BasisQuantity/@unitCode inside ram:GrossPriceProductTradePrice in the line's ram:SpecifiedLineTradeAgreement. A non-empty value must belong to the profile's UN/ECE Recommendation 20 and 21 unit code list. Empty values pass. Here, gross price means the price before the price discount, not the price including VAT.

Why it matters

The unit identifies what the price's base quantity measures. Confusing a price before discount with a price including VAT would describe a different calculation.

How to fix it

Check the unit used for the quantity to which your price before discount applies. If you generate XML, correct ram:GrossPriceProductTradePrice/ram:BasisQuantity/@unitCode in the affected line. Use a listed code, not free text such as pcs or kg. Generate the file again and recheck it.

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 EN 16931 1.0.9-2
ZUGFeRD 2.5 EN 16931 2.5.2
Rule text from phive-rules 4.6.4.

Check your file

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

Updated 6 November 2026