Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName.
ram:CountrySubDivisionName specifies a country subdivision within the postal address. The rule allows no more than one such value.
The postal address of the ultimate ship-to party contains multiple ram:CountrySubDivisionName elements. The rule allows at most one.
- Locate the
ram:PostalTradeAddressof the ultimate ship-to party. - Check whether it contains more than one
ram:CountrySubDivisionName. - 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 test counts the direct ram:CountrySubDivisionName child elements of ram:PostalTradeAddress and requires the count to be less than or equal to 1.
The rule applies to the postal address of the ultimate ship-to party of an invoice line.
rule/@context)assert/@test)