Postal address subdivision

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

PostalTradeAddress contains ram:CountrySubDivisionName more than once.

What the rule means

ram:CountrySubDivisionName identifies a subdivision of the country in the postal address. The rule allows at most one entry.

Please include the country subdivision no more than once

The payee’s postal address contains ram:CountrySubDivisionName more than once. This entry may occur at most once.

What to do
  1. Locate PostalTradeAddress under PayeeTradeParty.
  2. Check the number of ram:CountrySubDivisionName elements and ensure that no more than one is present.
  3. Regenerate the invoice and validate it again.
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 Schematron check requires no more than one direct ram:CountrySubDivisionName element under PostalTradeAddress.

Where the rule applies

The rule applies to ram:CountrySubDivisionName in the payee’s postal address under PayeeTradeParty.

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