At least one invoice line is required

Error BR-16 EN 16931

An Invoice shall have at least one Invoice line (BG-25).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The document contains no ram:IncludedSupplyChainTradeLineItem element. As a result, it has no invoice line.

What the rule means

An invoice must contain at least one invoice line to list the goods or services being invoiced.

Affected fields BG-25
Please add at least one invoice line to the invoice

No invoice line was found in the invoice. Add at least one line so the invoice lists the goods or services being charged.

What to do
  1. Add at least one ram:IncludedSupplyChainTradeLineItem element to the invoice.
  2. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<rsm:CrossIndustryInvoice>
  <rsm:SupplyChainTradeTransaction/>
</rsm:CrossIndustryInvoice>
✓ Correct
<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.

Where the rule applies

The rule applies to the entire rsm:CrossIndustryInvoice document and checks whether it contains at least one ram:IncludedSupplyChainTradeLineItem element.

Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
//ram:IncludedSupplyChainTradeLineItem