Provide content for the invoice-line note subject

Error BR-FXEXT-02 Factur-X

If the invoice line item free text subject code (BT-X-10) is specified, either the coded invoice line item free text (BT-X-9) or the invoice line item free text (BT-127) must be specified, or both. If both BT-X-9 and BT-127 are specified, both must have the same meaning.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

Both ram:ContentCode and ram:Content are missing for the specified subject code. At least one of the two elements must be present. If both are provided, they must have the same meaning.

What the rule means

The subject code identifies the type of note; a code or free text provides its content. If both forms of content are present, they must agree in meaning.

Affected fields BT-X-10 BT-X-9 BT-127
Please add content for the invoice-line note subject

A subject is provided for the invoice-line note, but its content is missing. Add a content code or free text; if you provide both, they must have the same meaning.

What to do
  1. In ram:IncludedNote, provide either ContentCode or Content.
  2. If you provide both, make sure they have the same meaning.
  3. If you use the model, check the call to AddNote(...).
  4. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:IncludedNote>
  <ram:SubjectCode>AAI</ram:SubjectCode>
</ram:IncludedNote>
✓ Correct
<ram:IncludedNote>
  <ram:SubjectCode>AAI</ram:SubjectCode>
  <ram:Content>Hinweis zur Rechnungsposition</ram:Content>
</ram:IncludedNote>
Check in FactoorSharp
  • AssociatedDocument.Notes (BT-127)
  • TradeLineItem.AddNote(note, subjectCode, contentCode) (BT-127)
Good to know

ram:ContentCode is the coded content; ram:Content is the content in free text.

Technical details

When ram:SubjectCode is present, the test requires at least one of ram:ContentCode or ram:Content. The test does not check whether both contents have the same meaning.

Where the rule applies

This rule applies to a ram:IncludedNote within ram:AssociatedDocumentLineDocument when ram:SubjectCode is provided.

Context (rule/@context)
//ram:AssociatedDocumentLineDocument/ram:IncludedNote[ram:SubjectCode]
Test expression (assert/@test)
(ram:ContentCode) or (ram:Content)