Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
CountrySubDivisionName occurs more than once in PostalTradeAddress. This element may appear there no more than once.
The rule limits the number of country subdivision entries in the buyer’s postal address to one.
CountrySubDivisionName appears more than once in the buyer’s postal address. You can adjust the section so that this element appears no more than once.
- Locate
PostalTradeAddressin theBuyerTradePartysection. - Check how many times
CountrySubDivisionNameoccurs inside it. - Remove any occurrences beyond the first.
- Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>North</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>West</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>North</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
Within PostalTradeAddress, the number of direct CountrySubDivisionName elements is counted and checked against a maximum of one.
The rule applies to the buyer’s postal address PostalTradeAddress.
rule/@context)assert/@test)