At most one payment information element

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 in ram:SpecifiedTradeSettlementPaymentMeans.

What the rule means

ram:Information contains information about the payment terms. Multiple occurrences of this element at the same location do not conform to the specified structure.

Please include the payment information no more than once

ram:Information is included more than once in the payment details. You can correct the structure by using no more than one such element there.

What to do
  1. Find ram:SpecifiedTradeSettlementPaymentMeans in the payment details.
  2. Check the ram:Information elements it contains and remove any extra occurrences.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:Information>Information A</ram:Information>
  <ram:Information>Information B</ram:Information>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:Information>Information</ram:Information>
</ram:SpecifiedTradeSettlementPaymentMeans>
Technical details

The test counts the direct ram:Information elements within ram:SpecifiedTradeSettlementPaymentMeans and allows no more than one occurrence.

Where the rule applies

The rule applies to ram:SpecifiedTradeSettlementPaymentMeans in the settlement payment details.

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