At most one subdivision in the payee legal organization’s address

Error FX-SCH-A-000999 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 payee legal organization’s address contains more than one ram:CountrySubDivisionName element. This element may occur no more than once in the address.

What the rule means

ram:CountrySubDivisionName contains the subdivision within a country. Limiting it to at most one element prevents multiple subdivision names from being stated.

Please use no more than one subdivision in the payee legal organization’s address

ram:CountrySubDivisionName is entered more than once in the payee legal organization’s address. The element may occur at most once.

What to do
  1. Open the payee legal organization’s ram:PostalTradeAddress.
  2. Remove duplicate occurrences of ram:CountrySubDivisionName so that the element appears no more than once.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>Region A</ram:CountrySubDivisionName>
  <ram:CountrySubDivisionName>Region B</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>Region A</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
Technical details

The test counts the direct ram:CountrySubDivisionName elements within ram:PostalTradeAddress and permits zero or one.

Where the rule applies

The rule applies to the payee legal organization’s ram:PostalTradeAddress in the payment terms.

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