Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
The ship-from party’s ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName. This element may occur no more than once in the postal address.
ram:CountrySubDivisionName identifies a country subdivision in the postal address. Multiple entries of this kind are not permitted in this XML context.
ram:CountrySubDivisionName is entered more than once in the ship-from party’s postal address. You can adjust the XML so that this element occurs no more than once.
- Find
ram:CountrySubDivisionNamein theram:PostalTradeAddressofram:ShipFromTradeParty. - Remove duplicate elements so that no more than one remains.
- Regenerate the invoice and validate it again.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName/> </ram:PostalTradeAddress>
Technical details
The check counts the direct ram:CountrySubDivisionName elements in ram:PostalTradeAddress and requires a count of no more than one.
The rule applies to ram:CountrySubDivisionName within the ram:PostalTradeAddress of ram:ShipFromTradeParty.
rule/@context)assert/@test)