Element 'ram:ID' must occur exactly 1 times.
ram:ID does not occur exactly once in ram:OriginTradeCountry. The element must be present there once.
ram:ID contains the country identifier for the product’s country of origin. Exactly one such element is required to identify the country of origin unambiguously.
The product’s country of origin is missing ram:ID or contains it more than once. Providing exactly one ram:ID element makes the entry unambiguous.
- Locate
ram:OriginTradeCountryon the product in the invoice line. - Make sure it contains exactly one
ram:IDelement. - Generate the invoice again and validate it once more.
<ram:OriginTradeCountry/>
<ram:OriginTradeCountry> <ram:ID>DE</ram:ID> </ram:OriginTradeCountry>
Technical details
The test counts the direct ram:ID elements within ram:OriginTradeCountry and requires the count to be 1.
The rule applies to ram:OriginTradeCountry on the product in an invoice line.
rule/@context)assert/@test)