Skip to content

Error

FX-SCH-A-000533: Use a valid unit code for the price base quantity

In short

Error: fails the selected checks.

FX-SCH-A-000533 means the unit code for the price base quantity (BT-150) is not permitted. Correct unitCode on ram:BasisQuantity inside ram:NetPriceProductTradePrice using a permitted code that describes what the price is per, such as C62 for units or HUR for hours. Export and recheck your file.

On this page

What it means

The price base quantity (BT-149) states how many units the price covers, and BT-150 identifies its unit. In the Basic profiles of Factur-X and ZUGFeRD, this rule checks a non-empty unitCode attribute on ram:NetPriceProductTradePrice/ram:BasisQuantity against the permitted unit code list. It does not check the quantity value or whether the unit matches the billed quantity.

Why it matters

The unit code identifies what the price base quantity measures. It distinguishes a price per number of units from one per hour, weight or another measure.

How to fix it

Check the unit associated with the affected line's price base quantity. Choose the code that matches the actual measure, rather than entering a word such as hours. In XML, correct unitCode on ram:NetPriceProductTradePrice/ram:BasisQuantity. Preserve the base quantity when the price covers a batch or another stated quantity. Export and recheck.

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

Check your file

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

Updated 6 November 2026