Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. The element may appear at most once in this context.
The rule limits the number of subdivision-name entries in this postal address to one.
The item seller’s postal address contains multiple ram:CountrySubDivisionName elements. You can resolve this by limiting the entry to one element.
- Find the
ram:PostalTradeAddressof theram:ItemSellerTradePartyon the affected invoice line. - Count the
ram:CountrySubDivisionNameelements it contains. - 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 test counts the direct ram:CountrySubDivisionName elements in the ram:PostalTradeAddress context and requires the count to be no greater than one.
The rule applies to the postal address ram:PostalTradeAddress of the item seller ram:ItemSellerTradeParty on an invoice line.
rule/@context)assert/@test)