Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in this postal address.
The rule limits the name of a country subdivision in this postal address to no more than one element.
ram:CountrySubDivisionName appears more than once in the postal address of the buyer’s tax representative’s legal organization. You can resolve this by limiting the entry to one element.
- Look for repeated
ram:CountrySubDivisionNameelements in the postal address ofram:SpecifiedLegalOrganization. - Remove the extra elements so that no more than one remains.
- Generate the invoice again and validate it.
<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 context is ram:PostalTradeAddress; the check verifies that it contains no more than one direct ram:CountrySubDivisionName element.
The rule applies to the postal address within the buyer’s tax representative’s ram:SpecifiedLegalOrganization, specifically to ram:CountrySubDivisionName.
rule/@context)assert/@test)