Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in ram:PostalTradeAddress. The element is either missing or occurs more than once.
The rule requires exactly one country entry in the postal address, ensuring that the country component is present unambiguously.
The payer's postal address is missing ram:CountryID, or the element occurs more than once. You can correct the address by having exactly one such element.
- Open the payer's
ram:PostalTradeAddress. - Make sure that it contains
ram:CountryIDexactly once. - Generate the invoice again and validate it once more.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID/> </ram:PostalTradeAddress>
Technical details
The test counts child elements named ram:CountryID in ram:PostalTradeAddress and requires the count to be 1.
The rule applies to the payer's postal address in ram:PostalTradeAddress.
rule/@context)assert/@test)