At most one ram:ID in ram:PayerTradeParty

Error FX-SCH-A-000927 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 within ram:PayerTradeParty. The element may occur no more than once.

What the rule means

The payer’s identifier is provided no more than once in this XML context.

Please include the payer’s identifier no more than once

ram:ID appears more than once in ram:PayerTradeParty. You can adjust the XML so that the element occurs no more than once.

What to do
  1. Find ram:PayerTradeParty in the invoice.
  2. Check whether it contains more than one ram:ID element.
  3. Remove any extra ram:ID elements, or omit the element if no identifier is provided.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:PayerTradeParty>
  <ram:ID/>
  <ram:ID/>
</ram:PayerTradeParty>
✓ Correct
<ram:PayerTradeParty>
  <ram:ID/>
</ram:PayerTradeParty>
Technical details

The rule counts direct ram:ID elements under ram:PayerTradeParty and permits zero or one occurrence.

Where the rule applies

The rule applies to the identifier within document-level ram:PayerTradeParty.

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