Element 'ram:CountryID' must occur exactly 1 times.
ram:CountryID does not occur exactly once in this ram:PostalTradeAddress. The element is either missing or occurs more than once.
The rule requires exactly one country entry in the legal organization's postal address, ensuring that the country component is present unambiguously.
The legal organization's postal address for the payer is missing ram:CountryID, or the element occurs more than once. You can correct the address by having exactly one such element.
- Open
ram:PostalTradeAddressin the payer'sram:SpecifiedLegalOrganization. - 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 postal address in the payer's ram:SpecifiedLegalOrganization.
rule/@context)assert/@test)