ram:Name is required exactly once

Error FX-SCH-A-001148 Factur-X

Element 'ram:Name' 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:IncludedReferencedProduct does not contain exactly one ram:Name element. The element is missing or occurs more than once.

What the rule means

ram:Name provides the name of the referenced product and must occur exactly once in this section.

Please provide the referenced product’s name exactly once

ram:Name is missing from the referenced product or appears more than once. Exactly one name is required in this section.

What to do
  1. Find ram:IncludedReferencedProduct in the invoice line’s product details.
  2. Make sure it contains exactly one ram:Name element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:IncludedReferencedProduct/>
✓ Correct
<ram:IncludedReferencedProduct>
  <ram:Name>Produit</ram:Name>
</ram:IncludedReferencedProduct>
Technical details

The test counts the direct ram:Name elements in ram:IncludedReferencedProduct and requires exactly one.

Where the rule applies

The rule applies within ram:IncludedReferencedProduct, which appears in the product details of an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedTradeProduct/ram:IncludedReferencedProduct
Test expression (assert/@test)
count(ram:Name)=1