At most one identifier for the payee

Error FX-SCH-A-000467 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

The rule limits the number of payee identifiers to at most one. Multiple ram:ID elements do not conform to the intended structure.

Please use no more than one identifier for the payee

Multiple ram:ID elements are provided for the payee. You can resolve this by limiting the number of these elements to one at most.

What to do
  1. Locate ram:PayeeTradeParty.
  2. Check the ram:ID elements it contains.
  3. Limit their number to one at most.
  4. 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 test counts the direct ram:ID elements within ram:PayeeTradeParty and accepts no more than one.

Where the rule applies

The rule applies to ram:ID within ram:PayeeTradeParty.

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