Skip to content

Error

FX-SCH-A-000612: The net price quantity needs a valid unit code

In short

Error: fails the selected checks.

FX-SCH-A-000612 means the unit code (BT-150) for the quantity underlying a line's net unit price is not allowed. Correct ram:NetPriceProductTradePrice/ram:BasisQuantity/@unitCode, for example to C62 for a unit or HUR for an hour.

On this page

What it means

A line's net unit price (BT-146) is its price after the price discount and excluding VAT. Its base quantity (BT-149) has a unit code (BT-150). This rule checks a non-empty unitCode on ram:NetPriceProductTradePrice/ram:BasisQuantity against the profile's UN/ECE Recommendation 20 and 21 unit code list. Empty values pass this check.

Why it matters

The base quantity and its unit explain what quantity the unit price covers. This is separate from the invoiced quantity and its unit.

How to fix it

Check the unit for the quantity to which your net unit price applies. If you generate XML, correct ram:NetPriceProductTradePrice/ram:BasisQuantity/@unitCode in the line's ram:SpecifiedLineTradeAgreement. Use a listed code rather than a free-text abbreviation. 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-000612 still fails, and which other rules do.

Updated 6 November 2026