At most one state or administrative area

Error FX-SCH-A-000901 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 ram:PostalTradeAddress.

What the rule means

ram:CountrySubDivisionName contains the name of a subdivision within the country, such as a state or comparable administrative area. The postal address allows at most one such value.

Please provide no more than one `ram:CountrySubDivisionName`

The postal address of ram:InvoicerTradeParty contains multiple ram:CountrySubDivisionName elements. You can adjust the address so that this entry occurs no more than once.

What to do
  1. Locate ram:PostalTradeAddress within ram:InvoicerTradeParty.
  2. Make sure ram:CountrySubDivisionName occurs no more than once in it.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>Area A</ram:CountrySubDivisionName>
  <ram:CountrySubDivisionName>Area B</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
✓ Correct
<ram:PostalTradeAddress>
  <ram:CountrySubDivisionName>Area A</ram:CountrySubDivisionName>
</ram:PostalTradeAddress>
Technical details

The rule counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and allows no more than one.

Where the rule applies

The rule applies to the postal address ram:PostalTradeAddress of ram:InvoicerTradeParty.

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