Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
PostalTradeAddress contains CountrySubDivisionName more than once. This element may occur there no more than once.
The rule limits the subdivision of the country specified in the postal address to one element.
CountrySubDivisionName appears more than once in the invoicee’s postal address. You can fix this by limiting the information to no more than one element.
- Find
PostalTradeAddressin the invoicee’s address. - Check how many times
CountrySubDivisionNameoccurs in it. - Keep no more than one
CountrySubDivisionNameelement. - Generate the invoice again 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
Within PostalTradeAddress, the number of direct CountrySubDivisionName elements is counted; the test passes when there is at most one.
The rule applies to the postal address of the invoicee in InvoiceeTradeParty.
rule/@context)assert/@test)