Provide no more than one address subdivision

Error FX-SCH-A-000897 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:PostalTradeAddress contains more than one ram:CountrySubDivisionName element. This element may occur at most once.

What the rule means

ram:CountrySubDivisionName contains the subdivision of the postal address. The rule limits this information to at most one element.

Please provide no more than one subdivision in the postal address

The invoicer’s postal address contains multiple ram:CountrySubDivisionName elements. You can limit this information to at most one element.

What to do
  1. Open ram:PostalTradeAddress under InvoicerTradeParty.
  2. Remove any extra ram: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>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 child elements ram:CountrySubDivisionName in ram:PostalTradeAddress and allows at most one element.

Where the rule applies

The rule applies to the invoicer’s postal address under InvoicerTradeParty.

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