Skip to content

Error

FX-SCH-A-000166: The buyer can have at most one tax registration block

In short

Error: fails the selected checks.

FX-SCH-A-000166 means your buyer details contain more than one ram:SpecifiedTaxRegistration block, the structure used for the buyer's VAT number (BT-48). Keep at most one such block under ram:BuyerTradeParty, then export and recheck the file.

On this page

What it means

The test counts ram:SpecifiedTaxRegistration elements directly inside ram:BuyerTradeParty (BG-7) and allows at most one. It does not check the VAT number (BT-48), its format or its registration scheme. It applies to the Basic WL, Basic, EN 16931 and Extended profiles of Factur-X 1.09 and ZUGFeRD 2.5.

Why it matters

This rule limits the number of tax registration blocks in your buyer details. It does not limit the number of tax registrations the buyer may hold.

How to fix it

Check whether the buyer's tax registration has been exported twice or another identifier has been mapped to the wrong XML field. If you provide the buyer's VAT number (BT-48), keep it in one ram:SpecifiedTaxRegistration under ram:BuyerTradeParty. Correct the mapping or remove duplicate entries without discarding genuine tax information from your records. Export again 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

Element 'ram:SpecifiedTaxRegistration' may occur at maximum 1 times.

Where this rule applies

Rule set Version
Factur-X 1.09 BASIC WL 1.0.9-2
Factur-X 1.09 BASIC 1.0.9-2
Factur-X 1.09 EN 16931 1.0.9-2
Factur-X 1.09 EXTENDED 1.0.9-2
ZUGFeRD 2.5 BASIC WL 2.5.2
ZUGFeRD 2.5 BASIC 2.5.2
ZUGFeRD 2.5 EN 16931 2.5.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-000166 still fails, and which other rules do.

Updated 6 November 2026