At most one note in the line document

Error FX-SCH-A-000271 Factur-X

Element 'ram:IncludedNote' may occur at maximum 1 times.

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

ram:IncludedNote occurs more than once in ram:AssociatedDocumentLineDocument. This element may occur there at most once.

What the rule means

ram:IncludedNote contains a note for the invoice line’s document section. The rule limits the number of these notes to at most one.

Please use no more than one note in the line document

The invoice line’s document section contains multiple ram:IncludedNote elements. At most one note is allowed there.

What to do
  1. Find the affected ram:AssociatedDocumentLineDocument.
  2. Check that it contains no more than one ram:IncludedNote.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:AssociatedDocumentLineDocument>
  <ram:IncludedNote/>
  <ram:IncludedNote/>
</ram:AssociatedDocumentLineDocument>
✓ Correct
<ram:AssociatedDocumentLineDocument>
  <ram:IncludedNote/>
</ram:AssociatedDocumentLineDocument>
Technical details

In the context of ram:AssociatedDocumentLineDocument, the rule checks whether the number of direct ram:IncludedNote elements is at most 1.

Where the rule applies

The rule applies in the invoice line’s document section (ram:AssociatedDocumentLineDocument).

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