Description at most once

Error FX-SCH-A-001155 Factur-X

Element 'ram:Description' 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 same ram:ManufacturerTradeParty contains ram:Description more than once.

What the rule means

At most one ram:Description is allowed within this element for the manufacturer. Multiple occurrences repeat the description in the same place.

Please include the manufacturer description no more than once

The product manufacturer has multiple ram:Description elements. Remove the extra occurrence so the description appears only once.

What to do
  1. Locate ram:ManufacturerTradeParty for the product on the invoice line.
  2. Check its ram:Description elements and leave no more than one.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ManufacturerTradeParty>
  <ram:Description>One</ram:Description>
  <ram:Description>Two</ram:Description>
</ram:ManufacturerTradeParty>
✓ Correct
<ram:ManufacturerTradeParty>
  <ram:Description>Manufacturer description</ram:Description>
</ram:ManufacturerTradeParty>
Technical details

The test counts the direct ram:Description elements within ram:ManufacturerTradeParty and allows no more than one.

Where the rule applies

This rule applies within ram:ManufacturerTradeParty for a product on an invoice line.

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