Provide exactly one line identifier in the associated document

Error FX-SCH-A-000270 Factur-X

Element 'ram:LineID' must occur exactly 1 times.

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

ram:LineID does not occur exactly once within ram:AssociatedDocumentLineDocument. The line identifier is either missing or occurs more than once.

What the rule means

ram:LineID identifies the corresponding line in the associated document and must be specified there exactly once.

Please provide exactly one line identifier in the associated document

The associated ram:AssociatedDocumentLineDocument is missing ram:LineID, or the element occurs more than once. Provide the line identifier exactly once.

What to do
  1. Locate the affected ram:AssociatedDocumentLineDocument.
  2. Ensure that it contains ram:LineID exactly once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:AssociatedDocumentLineDocument/>
✓ Correct
<ram:AssociatedDocumentLineDocument>
  <ram:LineID/>
</ram:AssociatedDocumentLineDocument>
Technical details

In the context of ram:AssociatedDocumentLineDocument, the expression checks whether exactly one ram:LineID element occurs.

Where the rule applies

Applies to ram:LineID within ram:AssociatedDocumentLineDocument for an invoice line.

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