At most one name for the referenced document

Error FX-SCH-A-000283 Factur-X

Element 'ram:Name' 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

The relevant ram:AdditionalReferencedDocument contains more than one ram:Name element.

What the rule means

The name of the referenced document can be provided at most once in this structure. Multiple ram:Name elements exceed this requirement.

Please include the referenced document's name no more than once

The name is entered more than once for the referenced document with the value 916. Remove the extra ram:Name elements so that no more than one remains.

What to do
  1. Find the ram:AdditionalReferencedDocument whose ram:TypeCode has the value 916.
  2. Check its ram:Name elements and leave no more than one.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:Name>Document A</ram:Name>
  <ram:Name>Document B</ram:Name>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:Name>Document A</ram:Name>
</ram:AdditionalReferencedDocument>
Technical details

For ram:AdditionalReferencedDocument with ram:TypeCode equal to 916, the number of child ram:Name elements is limited to one.

Where the rule applies

In the document-level ram:AdditionalReferencedDocument whose ram:TypeCode has the value 916.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:AdditionalReferencedDocument[ram:TypeCode="916"]
Test expression (assert/@test)
count(ram:Name)<=1