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.
ram:CountryID identifies the country of the postal address. Requiring exactly one element associates a single country identifier with the address.
ram:CountryID is missing or occurs more than once in the invoicer’s postal address. You can adjust the number of elements in the invoice.
- Open
ram:PostalTradeAddressunderInvoicerTradeParty. - Make sure the postal address contains exactly one
ram:CountryIDelement. - Generate the invoice again and validate it.
<ram:PostalTradeAddress/>
<ram:PostalTradeAddress> <ram:CountryID>DE</ram:CountryID> </ram:PostalTradeAddress>
Technical details
The test counts the child elements ram:CountryID in ram:PostalTradeAddress and requires a count of 1.
The rule applies to the invoicer’s postal address under InvoicerTradeParty.
rule/@context)assert/@test)