Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName. This element may occur at most once.
ram:CountrySubDivisionName contains the subdivision of an address. Limiting it to one element prevents repeated entries for this address detail.
The subdivision is included more than once in the postal address of the buyer’s legal organization. You can resolve the issue by limiting this detail to at most one occurrence.
- Locate
ram:PostalTradeAddressfor the buyer’s legal organization. - Count the
ram:CountrySubDivisionNameelements it contains. - Remove duplicate entries so that the element occurs no more than once.
- Generate the invoice again and validate it again.
<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 ram:PostalTradeAddress and permits zero or one.
The rule applies to the subdivision name in the postal address of the legal organization within the buyer party.
rule/@context)assert/@test)