Country identifier for the tax representative’s postal address

Error FX-SCH-A-000433 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 ram:PostalTradeAddress or occurs more than once. It must occur exactly once.

What the rule means

The country identifier specifies the country of the tax representative’s postal address. Exactly one country identifier makes this information unambiguous.

Please provide exactly one country identifier for the tax representative’s postal address

The tax representative’s postal address has no country identifier, or it is included more than once. This can be corrected by providing exactly one ram:CountryID.

What to do
  1. Locate the seller’s tax representative ram:PostalTradeAddress.
  2. Make sure it contains exactly one ram:CountryID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress/>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountryID>DE</ram:CountryID>
</ram:PostalTradeAddress>
Technical details

Within ram:PostalTradeAddress, the number of direct ram:CountryID elements is counted and compared with one.

Where the rule applies

The rule applies within the ram:PostalTradeAddress of the seller’s tax representative.

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