Note content no more than once

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

In ram:IncludedNote, ram:Content occurs more than once. The element may occur no more than once.

What the rule means

ram:Content contains the content of a note. Multiple ram:Content elements within the same note are not allowed in this context.

Please include the note content no more than once

ram:Content appears multiple times in one ram:IncludedNote. Remove the extra occurrences so that the note has no more than one content element.

What to do
  1. Locate the affected ram:IncludedNote in the document header.
  2. Check how many times ram:Content occurs in that note.
  3. Remove extra ram:Content elements so that no more than one remains.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:IncludedNote>
  <ram:Content>Texte</ram:Content>
  <ram:Content>Autre texte</ram:Content>
</ram:IncludedNote>
✓ Correct
<ram:IncludedNote>
  <ram:Content>Texte</ram:Content>
</ram:IncludedNote>
Technical details

The rule uses count(ram:Content)<=1 to ensure that zero or one ram:Content occurs in each ram:IncludedNote.

Where the rule applies

The rule applies in ram:IncludedNote within ram:ExchangedDocument in the invoice header.

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