Skip to content

Error

FX-SCH-A-001037: The unit price basis quantity has a unit code that is not allowed

In short

Error: fails the selected checks.

FX-SCH-A-001037 means the basis quantity for your line's unit price before discounts has a unit code outside the Extended profile's permitted list. Correct the unitCode attribute on ram:BasisQuantity using an allowed code that matches the price unit.

On this page

What it means

A non-empty unitCode attribute on ram:BasisQuantity under a line's ram:GrossPriceProductTradePrice must belong to the profile's permitted unit code list. The basis quantity states how many units the price covers. An empty unit code passes this particular check.

Why it matters

The basis quantity and its unit describe what the stated price covers. The unit must use the profile's permitted codes rather than an arbitrary abbreviation.

How to fix it

Check the unit attached to the affected line's price basis quantity, not just the invoiced quantity. In the XML, correct unitCode on ram:GrossPriceProductTradePrice/ram:BasisQuantity. Use an appropriate permitted UN/ECE code, such as C62 for one or HUR for an hour, then export again and recheck the 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-001037 still fails, and which other rules do.

Updated 6 November 2026