At most one subdivision in the address

Error FX-SCH-A-000875 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:CountrySubDivisionName occurs more than once in the invoicee’s ram:PostalTradeAddress. The element may occur at most once.

What the rule means

The address can contain no more than one subdivision designation.

Please include no more than one subdivision in the address

ram:CountrySubDivisionName appears more than once in the invoicee’s postal address. This element may appear there at most once.

What to do
  1. Locate ram:PostalTradeAddress for the invoicee.
  2. Check that ram:CountrySubDivisionName occurs no more than once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName>
  <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
Technical details

The rule checks that the number of ram:CountrySubDivisionName elements within ram:PostalTradeAddress does not exceed one.

Where the rule applies

The rule applies to ram:CountrySubDivisionName in the invoicee’s postal address.

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