Exactly one product name per invoice line

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 does not occur exactly once in SpecifiedTradeProduct. The product name is either missing or appears more than once.

What the rule means

The name identifies the goods or services on the invoice line in readable form. A single value avoids ambiguity about which product is being described.

Please provide exactly one product name for the invoice line

The product name for the invoice line is missing or entered more than once. A single value makes clear which product is being described.

What to do
  1. Open SpecifiedTradeProduct for the affected invoice line.
  2. Check that ram:Name occurs there exactly once.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeProduct/>
✓ Correct
<ram:SpecifiedTradeProduct>
  <ram:Name>Produit</ram:Name>
</ram:SpecifiedTradeProduct>
Technical details

The XPath test counts the direct ram:Name children of SpecifiedTradeProduct and requires exactly one.

Where the rule applies

The rule applies to SpecifiedTradeProduct within an invoice line.

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