At most one ram:Content element

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

ram:Content occurs more than once in ram:IncludedNote.

What the rule means

A note can contain at most one content element at this location. Multiple ram:Content elements do not conform to the intended XML structure.

Please include the note content no more than once

The note on a document associated with an invoice line contains its content more than once. You can adjust the XML structure so that ram:IncludedNote contains only one content element.

What to do
  1. Check the repeated ram:Content elements in ram:IncludedNote.
  2. Ensure that this element occurs no more than once there.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:IncludedNote>
  <ram:Content>Note A</ram:Content>
  <ram:Content>Note B</ram:Content>
</ram:IncludedNote>
✓ Correct
<ram:IncludedNote>
  <ram:Content>Note</ram:Content>
</ram:IncludedNote>
Technical details

The Schematron check counts the direct ram:Content elements within ram:IncludedNote and permits no more than one.

Where the rule applies

The rule applies to ram:IncludedNote on the document associated with an invoice line.

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