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:PayerTradeParty contains more than one ram:ID. This element may occur there no more than once.

What the rule means

This rule limits the number of identifiers for the payer in this element to no more than one.

Please use no more than one `ram:ID` in `ram:PayerTradeParty`

Multiple ram:ID elements are entered in ram:PayerTradeParty. No more than one such element may appear there.

What to do
  1. Locate ram:PayerTradeParty in the invoice settlement.
  2. Count the ram:ID elements it contains and keep no more than one.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:PayerTradeParty>
  <ram:ID>A</ram:ID>
  <ram:ID>B</ram:ID>
</ram:PayerTradeParty>
✓ Correct
<ram:PayerTradeParty>
  <ram:ID>A</ram:ID>
</ram:PayerTradeParty>
Technical details

The check verifies that ram:PayerTradeParty contains no more than one direct ram:ID element.

Where the rule applies

The ram:PayerTradeParty in the invoice settlement.

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