At most one content element per note

Error FX-SCH-A-000317 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

A ram:IncludedNote contains more than one direct child ram:Content element.

What the rule means

The note is represented by at most one content element. Multiple ram:Content elements in the same note exceed the structure allowed by this rule.

Please use no more than one content element per note

A note contains multiple ram:Content elements. The note can be sent with no more than one such element.

What to do
  1. Find the affected ram:IncludedNote in the document header.
  2. Keep no more than one ram:Content element in it.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:IncludedNote>
  <ram:Content>Première partie</ram:Content>
  <ram:Content>Deuxième partie</ram:Content>
</ram:IncludedNote>
✓ Correct
<ram:IncludedNote>
  <ram:Content>Contenu de la note</ram:Content>
</ram:IncludedNote>
Technical details

Within ram:IncludedNote, the number of direct ram:Content children is checked and limited to one.

Where the rule applies

The rule applies to ram:Content elements within a ram:IncludedNote in the document header.

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