Element 'ram:SpecifiedLineTradeDelivery' must occur exactly 1 times.
ram:SpecifiedLineTradeDelivery does not occur exactly once in the invoice line. The element is either missing or present more than once.
ram:SpecifiedLineTradeDelivery contains the delivery details for the invoice line. Each line must have exactly one such delivery section.
The invoice line’s delivery section is missing or appears more than once. Each invoice line needs exactly one such section.
- Find the affected
ram:IncludedSupplyChainTradeLineItem. - Check that it contains exactly one
ram:SpecifiedLineTradeDelivery. - Generate the invoice again and validate it once more.
<ram:IncludedSupplyChainTradeLineItem/>
<ram:IncludedSupplyChainTradeLineItem> <ram:SpecifiedLineTradeDelivery/> </ram:IncludedSupplyChainTradeLineItem>
Technical details
In the invoice-line context, the rule checks whether the number of direct ram:SpecifiedLineTradeDelivery elements equals 1.
The rule applies within each invoice line (ram:IncludedSupplyChainTradeLineItem).
rule/@context)assert/@test)