Content of the line note

Error FX-SCH-A-000529 Factur-X

Element 'ram:Content' must occur exactly 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 does not occur exactly once in ram:IncludedNote. The content element is either missing or present more than once.

What the rule means

ram:Content contains the text of the note. Each ram:IncludedNote must have exactly one content element.

Please provide exactly one content element for the line note

ram:Content is missing from the line note or appears more than once. Each note needs exactly one content element.

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

In the context of ram:IncludedNote, the rule checks whether the number of direct ram:Content elements equals 1.

Where the rule applies

The rule applies within a note (ram:IncludedNote) in the invoice line’s document section.

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