Element 'ram:IncludedSupplyChainTradeLineItem' must occur at least 1 times.
ram:SupplyChainTradeTransaction contains no ram:IncludedSupplyChainTradeLineItem element. The test requires at least one such element.
Invoice lines contain the goods or services being invoiced. Without at least one invoice line, the transaction has no invoiced item.
The invoice does not contain an invoice line. Add at least one line so that the invoiced goods or services are listed.
- Add at least one
ram:IncludedSupplyChainTradeLineItemunderram:SupplyChainTradeTransaction. - Recreate the invoice and validate it again.
<ram:SupplyChainTradeTransaction/>
<ram:SupplyChainTradeTransaction> <ram:IncludedSupplyChainTradeLineItem/> </ram:SupplyChainTradeTransaction>
Technical details
The test counts the direct child elements ram:IncludedSupplyChainTradeLineItem of ram:SupplyChainTradeTransaction and requires a count of at least one.
The rule applies to ram:SupplyChainTradeTransaction and checks whether it contains invoice lines.
rule/@context)assert/@test)