Skip to content

Error

FX-SCH-A-000658: Give the buyer agent's address one country element

In short

Error: fails the selected checks.

FX-SCH-A-000658 means a postal address for your buyer agent contains no ram:CountryID element or more than one. Add one country element or remove duplicates so the address contains exactly one.

On this page

What it means

Each ram:PostalTradeAddress inside ram:BuyerAgentTradeParty must contain exactly one direct ram:CountryID child. This test counts elements, not their contents. It does not check whether the country value is empty or permitted; country-code membership is checked by FX-SCH-A-000660.

Why it matters

The country element is a required part of the Extended profile's structure for this postal address.

How to fix it

Check the affected buyer agent address. Put the correct country code in one ram:CountryID inside ram:PostalTradeAddress and remove any additional ram:CountryID elements from that address. Check the code against the profile's permitted country list, then re-export and recheck your invoice.

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:CountryID' must occur exactly 1 times.

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

Updated 6 November 2026