Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. This element may occur there at most once.
The rule limits the country subdivision entry in the seller’s postal address to one element.
The seller’s postal address contains ram:CountrySubDivisionName more than once. Remove the extra entry so that the element occurs no more than once.
- Find
ram:CountrySubDivisionNameinram:PostalTradeAddress. - Remove any extra elements so that no more than one remains.
- Generate the invoice again and validate it once more.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>B</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>A</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The XPath counts the child elements ram:CountrySubDivisionName in ram:PostalTradeAddress and permits at most one.
The rule applies to the seller’s postal address ram:PostalTradeAddress.
rule/@context)assert/@test)