Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:PostalTradeAddress contains ram:CountrySubDivisionName more than once. This element may occur at most once in the address.
The element identifies a subdivision of the country, such as a state or province. Multiple values would make this address detail ambiguous.
The goods recipient’s address contains the state or province more than once. You can resolve this by including this detail only once in the address.
- Find
ram:CountrySubDivisionNamein the address underram:PostalTradeAddress. - Remove any extra occurrences so that the element appears no more than once.
- Generate the invoice again and check 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 check counts the direct ram:CountrySubDivisionName elements in the ram:PostalTradeAddress context and allows at most one.
The rule applies to the address of the legal organization under the goods recipient ram:ShipToTradeParty.
rule/@context)assert/@test)