At most one ram:CountrySubDivisionName

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

The ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName. This element may occur there no more than once.

What the rule means

This rule limits the country subdivision specified in this address to one element.

Please use only one `ram:CountrySubDivisionName` for the country subdivision

The country subdivision is entered more than once in the payee's address. The check can be satisfied by having just one entry.

What to do
  1. Locate the ram:PostalTradeAddress under ram:SpecifiedLegalOrganization of the payee.
  2. Count the ram:CountrySubDivisionName elements there and keep no more than one.
  3. Generate the invoice again 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

The check verifies that the context contains no more than one direct ram:CountrySubDivisionName element.

Where the rule applies

In the payee's ram:PostalTradeAddress, within ram:SpecifiedLegalOrganization.

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