Include the payee account no more than once

Error FX-SCH-A-000194 Factur-X

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

What the rule means

ram:PayeePartyCreditorFinancialAccount contains the account information of the payee. The rule allows this element no more than once in the payment details.

Please include the payee account no more than once

ram:PayeePartyCreditorFinancialAccount appears more than once in the payment details. This element may occur there at most once.

What to do
  1. Open ram:SpecifiedTradeSettlementPaymentMeans.
  2. Make sure ram:PayeePartyCreditorFinancialAccount occurs no more than once.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:PayeePartyCreditorFinancialAccount/>
  <ram:PayeePartyCreditorFinancialAccount/>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:PayeePartyCreditorFinancialAccount/>
</ram:SpecifiedTradeSettlementPaymentMeans>
Technical details

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

Where the rule applies

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

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