Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in PostalTradeAddress. The element may appear no more than once in this address.
ram:CountrySubDivisionName identifies a subdivision within the country. Multiple occurrences of this element are not permitted here.
ram:CountrySubDivisionName is entered more than once in the ultimate ship-to postal address. You can resolve this by limiting it to no more than one element.
- Locate
PostalTradeAddressunderUltimateShipToTradeParty. - Remove any extra
ram:CountrySubDivisionNameelements so that no more than one remains. - Generate the invoice again and validate it.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>Sud</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The test counts the direct ram:CountrySubDivisionName elements in PostalTradeAddress and requires a count of no more than 1.
The rule applies to PostalTradeAddress for the ultimate ship-to party under UltimateShipToTradeParty.
rule/@context)assert/@test)