At most one CountrySubDivisionName

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

CountrySubDivisionName occurs more than once in PostalTradeAddress. The element may occur at most once.

What the rule means

The seller’s address may contain a subdivision entry, but not multiple CountrySubDivisionName elements.

Please provide the subdivision of the seller’s address no more than once

The seller’s postal address contains CountrySubDivisionName more than once. You can limit the entry to at most one occurrence.

What to do
  1. Open PostalTradeAddress in the seller’s details.
  2. Remove duplicate CountrySubDivisionName elements so that no more than one remains.
  3. Generate the invoice again and validate it.
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 counts the direct CountrySubDivisionName elements within PostalTradeAddress; zero or one is allowed.

Where the rule applies

The rule applies to the subdivision entry in the seller’s postal address in PostalTradeAddress.

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