Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in the postal address of the legal organization. The rule allows at most one such element.
ram:CountrySubDivisionName contains the name of a subdivision of the country in the organization’s address. Limiting it to one element avoids ambiguous or repeated entries in this location.
The postal address of the invoicer’s legal organization contains ram:CountrySubDivisionName more than once. Remove the duplicate entry from the structure.
- Locate
ram:PostalTradeAddressunder the invoicer’sram:SpecifiedLegalOrganization. - Check whether
ram:CountrySubDivisionNameoccurs more than once. - Keep no more than one
ram:CountrySubDivisionNamein the address. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountrySubDivisionName elements in ram:SpecifiedLegalOrganization/ram:PostalTradeAddress and allows at most one.
The rule applies to the postal address of the invoicer’s legal organization, within ram:SpecifiedLegalOrganization/ram:PostalTradeAddress.
rule/@context)assert/@test)