Element 'ram:ID' must occur exactly 1 times.
ram:ID does not occur exactly once in ram:OriginTradeCountry. The element is either missing or appears more than once.
The country of origin requires exactly one country identifier so that the origin can be determined unambiguously.
The country of origin does not contain exactly one ram:ID element. You can resolve this by correcting the number of country identifiers.
- Make sure
ram:OriginTradeCountrycontains exactly oneram:IDelement. - Regenerate the invoice and validate it again.
<ram:OriginTradeCountry/>
<ram:OriginTradeCountry> <ram:ID>...</ram:ID> </ram:OriginTradeCountry>
Technical details
The XPath test requires the number of direct ram:ID elements in ram:OriginTradeCountry to equal one.
The rule applies to ram:OriginTradeCountry in the product information of an invoice line.
rule/@context)assert/@test)