Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
The postal address contains more than one ram:CountrySubDivisionName. This element may occur no more than once there.
The rule limits the subdivision information in this postal address to a single element.
The delivery recipient’s postal address contains ram:CountrySubDivisionName more than once. Limiting it to one such element will resolve the issue.
- Find all
ram:CountrySubDivisionNameelements inram:PostalTradeAddress. - Keep no more than one
ram:CountrySubDivisionNamethere. - 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
Within ram:PostalTradeAddress, the count of direct ram:CountrySubDivisionName elements is checked; zero or one is allowed.
The rule applies to the postal address of the organization at the delivery recipient, under ram:ShipToTradeParty.
rule/@context)assert/@test)