Skip to content

Error

FX-SCH-A-001059: The unit of the price base quantity must be a valid unit code

In short

Error: fails the selected checks.

FX-SCH-A-001059 means the unit code (BT-150) on your line's price base quantity (BT-149) is outside the Extended profile's permitted list. Use the listed code for the unit the price actually covers.

On this page

What it means

A non-empty unitCode on ram:BasisQuantity inside the line's ram:NetPriceProductTradePrice must match code list 15 in FACTUR-X_EXTENDED_codedb.xml. BT-149 gives the quantity covered by the unit price; BT-150 gives its unit of measure. An empty code passes this particular test.

Why it matters

The unit code states what the price base quantity measures. This code-list check does not perform the line amount calculation.

How to fix it

Correct unitCode on the affected ram:NetPriceProductTradePrice/ram:BasisQuantity. Use the code matching the actual unit, such as C62 for a count of individual units, HUR for hours or KGM for kilograms. Keep the base quantity consistent with what the price covers. 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

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

Updated 6 November 2026