Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The element may occur no more than once.
The rule limits the number of subdivision names in the postal address to one. Multiple such elements are not allowed by this XML structure.
The shipping party’s postal address contains ram:CountrySubDivisionName more than once. This element may occur at most once in the address.
- Check
ram:PostalTradeAddressofram:ShipFromTradeParty. - Remove the extra
ram:CountrySubDivisionNameelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
Technical details
The check counts direct ram:CountrySubDivisionName elements inside ram:PostalTradeAddress and requires a count no greater than 1.
The rule applies to ram:CountrySubDivisionName in ram:PostalTradeAddress of ram:ShipFromTradeParty.
rule/@context)assert/@test)