Provide the product name exactly once

Error FX-SCH-A-000550 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:Name is missing from SpecifiedTradeProduct or occurs more than once. Exactly one ram:Name must be present.

What the rule means

The product name identifies the product described by the invoice line. The rule requires exactly one name for each SpecifiedTradeProduct.

Please provide the product name exactly once

The invoice-line product is missing its name, or the name appears more than once. Having exactly one name resolves this issue.

What to do
  1. Open the affected SpecifiedTradeProduct.
  2. Make sure it contains exactly one ram:Name.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct/>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:Name>Produit</ram:Name>
</ram:SpecifiedTradeProduct>
Technical details

The test counts the direct ram:Name elements of SpecifiedTradeProduct and requires the count to be exactly 1.

Where the rule applies

The rule applies to the invoice-line product SpecifiedTradeProduct.

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