Element 'ram:SpecifiedTradeProduct' must occur exactly 1 times.
ram:SpecifiedTradeProduct does not occur exactly once in the invoice line. The element is either missing or present more than once.
ram:SpecifiedTradeProduct contains the product details for the invoice line. Each line must have exactly one such product entry.
A product entry is missing from an invoice line or appears more than once. This can be fixed by having a single product entry.
- Find the affected
ram:IncludedSupplyChainTradeLineItem. - Check that it contains exactly one
ram:SpecifiedTradeProduct. - Generate the invoice again and validate it once more.
<ram:IncludedSupplyChainTradeLineItem/>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedTradeProduct/> </ram:IncludedSupplyChainTradeLineItem>
Technical details
In the invoice-line context, the rule checks whether the number of direct ram:SpecifiedTradeProduct elements equals 1.
The rule applies within each invoice line (ram:IncludedSupplyChainTradeLineItem).
rule/@context)assert/@test)