Skip to content

Error

FX-SCH-A-000662: Country in the company address of the buyer's agent

In short

Error: fails the selected checks.

FX-SCH-A-000662 requires exactly one ram:CountryID element in the postal address within the company details of the buyer's agent. Add the element if it is missing, or remove duplicate elements.

On this page

What it means

The check counts ram:CountryID elements directly inside ram:BuyerAgentTradeParty/ram:SpecifiedLegalOrganization/ram:PostalTradeAddress in the header trade agreement. The count must be one. This rule does not check the country code itself.

Why it matters

This address must have one country element to follow the structure of the Extended profile of Factur-X and ZUGFeRD.

How to fix it

Check the company postal address of the buyer's agent. Within ram:SpecifiedLegalOrganization/ram:PostalTradeAddress, keep one ram:CountryID containing the correct country code. Add it if it is missing, then export the invoice 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

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

Updated 6 November 2026