Include payment information no more than once

Error FX-SCH-A-000291 Factur-X

Element 'ram:Information' 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:Information occurs more than once within ram:SpecifiedTradeSettlementPaymentMeans.

What the rule means

ram:Information contains additional information about the payment details. The rule allows this element no more than once in this section.

Please include the payment information no more than once

The payment details contain ram:Information more than once. This element may occur at most once in this section.

What to do
  1. Open ram:SpecifiedTradeSettlementPaymentMeans.
  2. Remove any additional ram:Information elements so that no more than one remains.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:Information/>
  <ram:Information/>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:Information/>
</ram:SpecifiedTradeSettlementPaymentMeans>
Technical details

The rule counts the direct ram:Information child elements of ram:SpecifiedTradeSettlementPaymentMeans and allows at most one occurrence.

Where the rule applies

The rule applies to ram:Information inside ram:SpecifiedTradeSettlementPaymentMeans.

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