Exactly one product name required

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

A referenced product does not contain exactly one ram:Name element. The element is either missing or occurs more than once.

What the rule means

Each referenced product must contain exactly one name. The name identifies the referenced product in the invoice structure.

Please provide exactly one name for the referenced product

ram:Name is missing or appears more than once for the referenced product. You can adjust the entry so that it contains exactly one name.

What to do
  1. Locate the affected ram:IncludedReferencedProduct.
  2. Add a ram:Name if it is missing, or remove any extra ram:Name elements.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:IncludedReferencedProduct/>
✓ Correct
<ram:IncludedReferencedProduct>
  <ram:Name>Produit</ram:Name>
</ram:IncludedReferencedProduct>
Technical details

The rule counts the direct ram:Name elements in the context of ram:IncludedReferencedProduct and requires exactly one.

Where the rule applies

The rule applies to ram:Name within a referenced product (ram:IncludedReferencedProduct) on an invoice line.

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