The tax representative’s postal address contains exactly one country identifier

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.

What the rule means

ram:CountryID identifies the country of the tax representative’s postal address. Exactly one country identifier is required for the address.

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

The country identifier is missing from the tax representative’s postal address, or it appears more than once. The check is satisfied when there is exactly one ram:CountryID.

What to do
  1. Locate the tax representative’s 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

The test counts the direct ram:CountryID elements in ram:PostalTradeAddress and requires a count of 1.

Where the rule applies

The postal address 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