Specify the card payment identifier exactly once

Error FX-SCH-A-000608 Factur-X

Element 'ram:ID' must occur exactly 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:ApplicableTradeSettlementFinancialCard, ram:ID does not occur exactly once. The element is missing or occurs more than once.

What the rule means

ram:ID contains the identifier of the payment card used for the card payment. The rule requires exactly one such element.

Please specify the payment card identifier exactly once

ram:ID is missing from the card payment section or appears more than once. This section requires exactly one ram:ID element.

What to do
  1. Open ram:ApplicableTradeSettlementFinancialCard.
  2. Make sure it contains exactly one ram:ID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeSettlementFinancialCard/>
✓ Correct
<ram:ApplicableTradeSettlementFinancialCard>
  <ram:ID/>
</ram:ApplicableTradeSettlementFinancialCard>
Technical details

The rule counts the direct ram:ID child elements of ram:ApplicableTradeSettlementFinancialCard and requires a count of 1.

Where the rule applies

The rule applies to ram:ID inside ram:ApplicableTradeSettlementFinancialCard, which is part of the payment details.

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