Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The element may appear there at most once.
The rule limits the region or subdivision of the country in the postal address to at most one element.
ram:CountrySubDivisionName appears more than once in the ship-to party’s postal address. Remove the duplicate; the region may also be omitted.
- Find
ram:PostalTradeAddressfor the ship-to party in the invoice line. - Remove any extra
ram:CountrySubDivisionNameelements so that at most one remains. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Region A</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>Region B</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Region A</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The check counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and allows zero or one.
This rule applies to the ship-to party’s postal address within an invoice line.
rule/@context)assert/@test)