Skip to content

Error

FX-SCH-A-000613: The invoiced quantity needs a valid unit code

In short

Error: fails the selected checks.

FX-SCH-A-000613 means the unit code (BT-130) on an invoice line's invoiced quantity is not allowed. Correct ram:BilledQuantity/@unitCode to the appropriate code, such as C62 for a unit, HUR for an hour or KGM for a kilogram.

On this page

What it means

The invoiced quantity (BT-129) is held in ram:BilledQuantity under ram:SpecifiedLineTradeDelivery. This rule checks its non-empty unitCode attribute (BT-130) against the profile's UN/ECE Recommendation 20 and 21 unit code list. Empty values pass this code-list check, which does not establish whether the unit is present or appropriate.

Why it matters

The unit explains how to interpret the invoiced quantity. A recognised code still needs to describe the unit you actually invoiced.

How to fix it

Check the unit on the affected line's invoiced quantity. If you generate XML, correct ram:SpecifiedLineTradeDelivery/ram:BilledQuantity/@unitCode. Use a listed code, such as KGM rather than kg, and check that it describes the quantity supplied. 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-000613 still fails, and which other rules do.

Updated 6 November 2026