One card identifier is required

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

ram:ID is missing from ram:ApplicableTradeSettlementFinancialCard or occurs more than once. Exactly one ram:ID element is required.

What the rule means

ram:ID contains the payment card identifier. The card details require exactly one such identifier at this location.

Please provide exactly one card identifier

ram:ID is missing from the card details or appears more than once. You can resolve this by providing exactly one card identifier there.

What to do
  1. Find ram:ApplicableTradeSettlementFinancialCard in the payment details.
  2. Add or remove ram:ID elements so that exactly one is present.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableTradeSettlementFinancialCard/>
✓ Correct
<ram:ApplicableTradeSettlementFinancialCard>
  <ram:ID>1234</ram:ID>
</ram:ApplicableTradeSettlementFinancialCard>
Technical details

The test counts the direct ram:ID elements in ram:ApplicableTradeSettlementFinancialCard and requires exactly one occurrence.

Where the rule applies

The rule applies to ram:ApplicableTradeSettlementFinancialCard within the payment details.

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