Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The element may occur there at most once.
ram:CountrySubDivisionName contains the subdivision of the ship-to address. The rule limits this element to one occurrence in the postal address.
The subdivision is entered more than once in the ship-to postal address. This element may occur there at most once.
- Locate
ram:CountrySubDivisionNameinram:PostalTradeAddressfor the party at the ship-to address. - Remove duplicate occurrences so that the element appears no more than once.
- 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 child elements ram:CountrySubDivisionName in ram:PostalTradeAddress and accepts zero or one occurrence.
The rule applies to ram:CountrySubDivisionName in the postal address of the party at the ship-to address.
rule/@context)assert/@test)