Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName element. This element may occur at most once.
ram:CountrySubDivisionName contains the subdivision of the postal address. The rule limits this information to at most one element.
The invoicer’s postal address contains multiple ram:CountrySubDivisionName elements. You can limit this information to at most one element.
- Open
ram:PostalTradeAddressunderInvoicerTradeParty. - Remove any extra
ram:CountrySubDivisionNameelements so that no more than one remains. - Generate the invoice again and validate it.
<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 child elements ram:CountrySubDivisionName in ram:PostalTradeAddress and allows at most one element.
The rule applies to the invoicer’s postal address under InvoicerTradeParty.
rule/@context)assert/@test)