At most one period description

Error FX-SCH-A-000858 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

Within ram:BillingSpecifiedPeriod, ram:Description occurs more than once. The test permits at most one such element.

What the rule means

Limiting ram:Description to one occurrence keeps the billing period description unambiguous and avoids repeated descriptions at this location.

Please provide the period description only once

ram:Description occurs more than once in ram:BillingSpecifiedPeriod. You can resolve this by having no more than one description there.

What to do
  1. Find all ram:Description elements in ram:BillingSpecifiedPeriod.
  2. Keep no more than one ram:Description element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:BillingSpecifiedPeriod>
  <ram:Description>Première description</ram:Description>
  <ram:Description>Deuxième description</ram:Description>
</ram:BillingSpecifiedPeriod>
✓ Correct
<ram:BillingSpecifiedPeriod>
  <ram:Description>Description de la période</ram:Description>
</ram:BillingSpecifiedPeriod>
Technical details

The test counts the direct ram:Description child elements of ram:BillingSpecifiedPeriod and requires their number to be at most 1.

Where the rule applies

The rule applies to ram:Description within ram:BillingSpecifiedPeriod in the document-level billing information.

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