Country identifier for the payee’s address

Error FX-SCH-A-000998 Factur-X

Element 'ram:CountryID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:CountryID is missing from, or occurs more than once in, the ram:PostalTradeAddress of the payee’s legal organization. It must occur exactly once.

What the rule means

ram:CountryID identifies the country of the postal address. Exactly one country value is required so that the address has an unambiguous country assignment.

Please provide exactly one country identifier for the payee’s address

The address of the payee’s legal organization is missing a country identifier or contains it more than once. You can correct this directly in the address.

What to do
  1. Find the ram:PostalTradeAddress of the payee’s legal organization.
  2. Make sure it contains exactly one ram:CountryID.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress/>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountryID/>
</ram:PostalTradeAddress>
Technical details

The rule checks that ram:CountryID occurs exactly once within ram:PostalTradeAddress.

Where the rule applies

The rule applies to the postal address of the payee’s legal organization in the payment terms.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:PayeeTradeParty/ram:SpecifiedLegalOrganization/ ram:PostalTradeAddress
Test expression (assert/@test)
count(ram:CountryID)=1