Element 'ram:CountrySubDivisionName' may occur at maximum 1 times.
ram:CountrySubDivisionName occurs more than once in ram:PostalTradeAddress.
The address may contain at most one subdivision entry. Multiple occurrences of this element do not conform to the specified structure.
ram:CountrySubDivisionName appears more than once in the ship-from organization’s address. You can reduce the repeated entries to at most one element.
- Locate
ram:PostalTradeAddressinram:SpecifiedLegalOrganizationfor the ship-from party. - Check how many times
ram:CountrySubDivisionNameoccurs in it. - Remove any extra occurrences so that no more than one remains.
- Regenerate the invoice and validate it again.
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> <ram:CountrySubDivisionName>Est</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
<ram:PostalTradeAddress> <ram:CountrySubDivisionName>Nord</ram:CountrySubDivisionName> </ram:PostalTradeAddress>
Technical details
The rule checks whether the number of direct ram:CountrySubDivisionName child elements of ram:PostalTradeAddress is less than or equal to one.
This rule applies to ram:PostalTradeAddress within ram:SpecifiedLegalOrganization for the ship-from party (ram:ShipFromTradeParty).
rule/@context)assert/@test)