At most one name for the embedded 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 ram:AdditionalReferencedDocument with type code 916 contains more than one ram:Name element.

What the rule means

The name identifies the embedded document. It may be provided at most once for this reference.

Please provide no more than one name for the embedded document

More than one ram:Name element is recorded for the embedded document. You can limit the entry to one name.

What to do
  1. Keep no more than one ram:Name element in the relevant ram:AdditionalReferencedDocument.
  2. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:Name>Beleg A</ram:Name>
  <ram:Name>Beleg B</ram:Name>
</ram:AdditionalReferencedDocument>
✓ Correct
<ram:AdditionalReferencedDocument>
  <ram:TypeCode>916</ram:TypeCode>
  <ram:Name>Beleg A</ram:Name>
</ram:AdditionalReferencedDocument>
Technical details

Within this context, the number of direct ram:Name elements is counted; zero or one is allowed.

Where the rule applies

The rule applies to ram:Name in an ram:AdditionalReferencedDocument with type code 916.

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