Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
The element ram:PostalTradeAddress contains more than one ram:CountrySubDivisionName element.
ram:CountrySubDivisionName contains the name of a country subdivision in the delivery address. At most one value is allowed for this field.
The delivery recipient’s postal address contains ram:CountrySubDivisionName more than once. Remove the extra occurrence from the XML.
- Locate all
ram:CountrySubDivisionNameelements underram:PostalTradeAddressofram:ShipToTradeParty. - Make sure no more than one such element is present.
- Generate the invoice again and validate it once more.
<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 XPath condition allows zero or one child element named ram:CountrySubDivisionName.
The rule applies to the postal address of the delivery recipient under ShipToTradeParty for an invoice line.
rule/@context)assert/@test)