At most one payee account

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 in ram:SpecifiedTradeSettlementPaymentMeans. This element may occur at most once.

What the rule means

The payment details contain at most one financial account for the payee. Multiple account elements for the same payee are not permitted in this structure.

Please provide no more than one payee account

The payment details contain more than one payee account. You can adjust the details so that the invoice contains only one account.

What to do
  1. Find the ram:PayeePartyCreditorFinancialAccount elements in ram:SpecifiedTradeSettlementPaymentMeans.
  2. Keep no more than one such element in the payment details.
  3. Generate the invoice again and validate it once more.
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 child elements ram:PayeePartyCreditorFinancialAccount and requires their number to be no greater than one.

Where the rule applies

The rule applies to the payment details in ram:SpecifiedTradeSettlementPaymentMeans within the document-level settlement.

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