Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
PostalTradeAddress contains more than one CountrySubDivisionName element. This element may occur no more than once.
CountrySubDivisionName contains the name of a country subdivision in the postal address. Multiple occurrences would repeat this information within the same address.
The country subdivision is entered more than once in the ultimate ship-to party’s postal address. There may be no more than one CountrySubDivisionName.
- Open the ultimate ship-to party’s
PostalTradeAddress. - Remove duplicate
CountrySubDivisionNameelements so that no more than one remains. - Generate the invoice again and validate it once more.
<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 test counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and permits at most one.
The rule applies to the postal address of the ultimate ship-to party for an invoice line, under UltimateShipToTradeParty.
rule/@context)assert/@test)