At most one ram:Content per ram:IncludedNote

Error FX-SCH-A-001012 Factur-X

Element 'ram:Content' 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

The same ram:IncludedNote contains ram:Content more than once.

What the rule means

A note contains no more than one content element in ram:Content. Multiple occurrences do not conform to the structure checked by this rule.

Please use only one `ram:Content` in each `ram:IncludedNote`

A note associated with the invoice line document contains multiple ram:Content elements. The structure allows at most one in each ram:IncludedNote.

What to do
  1. Combine the note’s content into a single ram:Content element.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:IncludedNote>
  <ram:Content>Erster Inhalt</ram:Content>
  <ram:Content>Zweiter Inhalt</ram:Content>
</ram:IncludedNote>
✓ Correct
<ram:IncludedNote>
  <ram:Content>Inhalt des Hinweises</ram:Content>
</ram:IncludedNote>
Technical details

The test counts the ram:Content elements within the current ram:IncludedNote and allows no more than one.

Where the rule applies

The rule applies to the content of a note (ram:IncludedNote) associated with the invoice line document.

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