At most one receivable accounting account

Error FX-SCH-A-000175 Factur-X

Element 'ram:ReceivableSpecifiedTradeAccountingAccount' 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:ReceivableSpecifiedTradeAccountingAccount occurs more than once in ram:ApplicableHeaderTradeSettlement. The element may appear no more than once.

What the rule means

ram:ReceivableSpecifiedTradeAccountingAccount contains the accounting account information for receivables. The rule limits this information in the settlement section to one element.

Please provide the receivable account no more than once

The settlement section contains ram:ReceivableSpecifiedTradeAccountingAccount more than once. You can remove the extra elements or omit the account information.

What to do
  1. Check the ram:ReceivableSpecifiedTradeAccountingAccount elements in ram:ApplicableHeaderTradeSettlement.
  2. Remove any extra elements or omit the account information.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:ApplicableHeaderTradeSettlement>
  <ram:ReceivableSpecifiedTradeAccountingAccount/>
  <ram:ReceivableSpecifiedTradeAccountingAccount/>
</ram:ApplicableHeaderTradeSettlement>
✓ Correct
<ram:ApplicableHeaderTradeSettlement>
  <ram:ReceivableSpecifiedTradeAccountingAccount/>
</ram:ApplicableHeaderTradeSettlement>
Technical details

The rule counts the direct ram:ReceivableSpecifiedTradeAccountingAccount elements under ram:ApplicableHeaderTradeSettlement and allows no more than one.

Where the rule applies

The rule applies within the invoice settlement section, ram:ApplicableHeaderTradeSettlement.

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