Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The element may appear no more than once.
ram:CountrySubDivisionName contains the name of a country subdivision in the ship-to address. The rule limits this information to one element.
The ship-to postal address contains ram:CountrySubDivisionName more than once. You can remove the extra entries or omit the information.
- Check the
ram:CountrySubDivisionNameelements inram:PostalTradeAddress. - Remove any extra elements or omit the information.
- 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 rule counts the direct ram:CountrySubDivisionName elements under ram:PostalTradeAddress and allows no more than one.
The rule applies to the ship-to party’s postal address, ram:PostalTradeAddress.
rule/@context)assert/@test)