Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress. This element may occur at most once.
ram:CountrySubDivisionName contains the name of a subdivision in the postal address. The rule limits this element to at most one occurrence.
ram:CountrySubDivisionName appears more than once in the payee’s postal address. This element may be entered no more than once.
- Locate the payee’s
ram:PostalTradeAddress. - Make sure it contains no more than one
ram:CountrySubDivisionName. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>North</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>East</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>North</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The XPath test checks whether the number of direct ram:CountrySubDivisionName child elements is at most one; the element may also be absent.
The rule applies to ram:CountrySubDivisionName in the payee’s postal address.
rule/@context)assert/@test)