Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. This element may appear there no more than once.
The address contains at most one detail identifying a subdivision of the country, such as a state or province.
The postal address contains multiple country subdivision details. You can resolve this by keeping a single detail.
- Find the repeated
ram:CountrySubDivisionNameelements inram:PostalTradeAddress. - Keep no more than one
ram:CountrySubDivisionNameelement there. - 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 the direct ram:CountrySubDivisionName elements in context and accepts no more than one.
The rule applies to the postal address of the sales agent’s legal organization in the seller section, specifically ram:PostalTradeAddress.
rule/@context)assert/@test)