Include the direct debit mandate identifier no more than once

Error FX-SCH-A-000188 Factur-X

Element 'ram:DirectDebitMandateID' 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

ram:DirectDebitMandateID occurs more than once within ram:SpecifiedTradePaymentTerms. The element may occur no more than once.

What the rule means

ram:DirectDebitMandateID contains the direct debit mandate identifier in the payment terms. The limit prevents this element from occurring multiple times there.

Please include the direct debit mandate identifier no more than once

ram:DirectDebitMandateID occurs more than once in ram:SpecifiedTradePaymentTerms. You can limit the information there to no more than one such element.

What to do
  1. Find ram:SpecifiedTradePaymentTerms in the settlement.
  2. Remove any extra ram:DirectDebitMandateID elements so that no more than one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradePaymentTerms>
  <ram:DirectDebitMandateID/>
  <ram:DirectDebitMandateID/>
</ram:SpecifiedTradePaymentTerms>
✓ Correct
<ram:SpecifiedTradePaymentTerms>
  <ram:DirectDebitMandateID/>
</ram:SpecifiedTradePaymentTerms>
Technical details

Within ram:SpecifiedTradePaymentTerms, the rule checks that the number of ram:DirectDebitMandateID elements is no greater than one.

Where the rule applies

The rule applies to ram:SpecifiedTradePaymentTerms in the settlement.

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