Payee’s country

Error FX-SCH-A-000915 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 does not occur exactly once in PostalTradeAddress. The element is missing or occurs more than once.

What the rule means

ram:CountryID identifies the country of the postal address. Exactly one such element is expected for the payee’s address.

Please include the country of the payee’s postal address exactly once

ram:CountryID is missing or appears more than once in the payee’s postal address. It must occur exactly once.

What to do
  1. Locate PostalTradeAddress under PayeeTradeParty.
  2. Check that ram:CountryID occurs exactly once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress/>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountryID/>
</ram:PostalTradeAddress>
Technical details

The Schematron check requires exactly one direct ram:CountryID element under PostalTradeAddress.

Where the rule applies

The rule applies to the payee’s postal address under PayeeTradeParty.

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