At least one invoice line is required

Error FX-SCH-A-000265 Factur-X

Element 'ram:IncludedSupplyChainTradeLineItem' must occur at least 1 times.

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

ram:SupplyChainTradeTransaction contains no ram:IncludedSupplyChainTradeLineItem element. The test requires at least one such element.

What the rule means

Invoice lines contain the goods or services being invoiced. Without at least one invoice line, the transaction has no invoiced item.

Please add at least one invoice line

The invoice does not contain an invoice line. Add at least one line so that the invoiced goods or services are listed.

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

Where the rule applies

The rule applies to ram:SupplyChainTradeTransaction and checks whether it contains invoice lines.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction
Test expression (assert/@test)
count(ram:IncludedSupplyChainTradeLineItem)>=1