An Invoice shall have at least one Invoice line (BG-25).
The document contains no ram:IncludedSupplyChainTradeLineItem element. As a result, it has no invoice line.
An invoice must contain at least one invoice line to list the goods or services being invoiced.
No invoice line was found in the invoice. Add at least one line so the invoice lists the goods or services being charged.
- Add at least one
ram:IncludedSupplyChainTradeLineItemelement to the invoice. - Generate the invoice again and validate it.
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction/> </rsm:CrossIndustryInvoice>
<rsm:CrossIndustryInvoice> <rsm:SupplyChainTradeTransaction> <ram:IncludedSupplyChainTradeLineItem/> </rsm:SupplyChainTradeTransaction> </rsm:CrossIndustryInvoice>
Technical details
The XPath checks across the document that at least one ram:IncludedSupplyChainTradeLineItem exists.
The rule applies to the entire rsm:CrossIndustryInvoice document and checks whether it contains at least one ram:IncludedSupplyChainTradeLineItem element.
rule/@context)assert/@test)