At most one country subdivision in the postal address

Error FX-SCH-A-000434 Factur-X

Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.

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

ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName. This element may occur at most once.

What the rule means

ram:CountrySubDivisionName contains the name of a country subdivision in the postal address. The rule limits this information to at most one element.

Please use at most one country subdivision in the tax representative’s postal address

ram:CountrySubDivisionName appears more than once in the tax representative’s postal address. You can limit it to at most one element.

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

Within ram:PostalTradeAddress, the rule checks whether the number of direct ram:CountrySubDivisionName elements is less than or equal to 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:CountrySubDivisionName)<=1