The manufacturer address requires a country

Error FX-SCH-A-001162 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

The manufacturer party’s ram:PostalTradeAddress does not contain exactly one ram:CountryID element. The element is missing or occurs more than once.

What the rule means

The manufacturer’s postal address must contain exactly one country identifier.

Please provide exactly one country in the manufacturer’s address

The product manufacturer’s postal address is missing ram:CountryID or contains it more than once. You can adjust the address so that exactly one country identifier is present.

What to do
  1. Find ram:PostalTradeAddress on the product manufacturer party.
  2. Make sure the address contains exactly one ram:CountryID element.
  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 within ram:PostalTradeAddress and requires exactly one.

Where the rule applies

The rule applies to the product manufacturer party’s postal address, ram:PostalTradeAddress.

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