Specify no more than one payee identifier

Error FX-SCH-A-000984 Factur-X

Element 'ram:ID' 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:ID occurs more than once in ram:PayeeTradeParty.

What the rule means

At most one ram:ID is allowed in ram:PayeeTradeParty. Multiple occurrences violate the defined XML structure.

Please specify no more than one payee identifier

ram:ID has been entered more than once for the payee. You can resolve this by reducing the repeated entries to no more than one.

What to do
  1. Find ram:PayeeTradeParty in the payment terms.
  2. Check its ram:ID elements and leave no more than one.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:ID>123</ram:ID>
  <ram:ID>456</ram:ID>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:ID>123</ram:ID>
</ram:PayeeTradeParty>
Technical details

The XPath test counts the ram:ID elements within the current ram:PayeeTradeParty and requires the count to be no greater than one.

Where the rule applies

The rule applies to ram:ID within ram:PayeeTradeParty in the document-level payment terms.

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