Element 'ram:CountryID' must occur exactly 1 times.
In ram:PostalTradeAddress, ram:CountryID does not occur exactly once. The element is either missing or repeated.
The payer’s address must contain exactly one country identifier so that its country is stated unambiguously.
The country identifier is missing from the payer’s address or is entered more than once. You can correct the address by providing exactly one ram:CountryID.
- Find
ram:PostalTradeAddressin the payer details for payment. - Make sure it contains exactly one
ram:CountryID. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>XX</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The Schematron condition counts the child elements ram:CountryID and requires the count to be 1.
The rule applies to ram:PostalTradeAddress in the payer details for payment.
rule/@context)assert/@test)