Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
CountrySubDivisionName occurs more than once in PostalTradeAddress. This element may occur no more than once.
CountrySubDivisionName identifies a subdivision within a country. The limit prevents ambiguous or repeated entries at this location in the postal address.
The sales agent’s postal address contains CountrySubDivisionName more than once. You can resolve this by limiting the entry to at most one element.
- Open the sales agent’s
PostalTradeAddress. - Remove duplicate
CountrySubDivisionNameelements so that no more than one remains. - Regenerate the invoice and validate it again.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>...</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
In the context of PostalTradeAddress, the rule checks that no more than one direct CountrySubDivisionName element is present; zero elements are allowed.
The rule applies to the sales agent’s postal address under SalesAgentTradeParty and checks PostalTradeAddress.
rule/@context)assert/@test)