Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName may occur no more than once in ram:PostalTradeAddress. Multiple occurrences of this element are not allowed.
The rule prevents ambiguous repeated subdivision entries in a single postal address.
The legal organization’s postal address contains ram:CountrySubDivisionName more than once. This element may appear there only once.
- Locate the postal address under
ram:SpecifiedLegalOrganization. - Remove any extra occurrences of
ram:CountrySubDivisionName. - Regenerate the invoice and validate it again.
<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 child elements ram:CountrySubDivisionName of ram:PostalTradeAddress and allows zero or one element.
The rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization of the buyer agent.
rule/@context)assert/@test)