Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The rule allows at most one such element.
ram:CountrySubDivisionName contains the name of a subdivision of the country in the address. Limiting it to one element avoids ambiguous or repeated entries in this location.
The invoicer’s postal address contains ram:CountrySubDivisionName more than once. Remove the duplicate entry from the structure.
- Locate
ram:PostalTradeAddressin the invoicer’s address. - Check whether
ram:CountrySubDivisionNameoccurs more than once. - Keep no more than one
ram:CountrySubDivisionNamein the address. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and allows at most one.
The rule applies to the invoicer’s postal address in ram:InvoicerTradeParty, within ram:PostalTradeAddress.
rule/@context)assert/@test)