Multiple identifiers for the payee

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. This element may appear at most once in this context.

What the rule means

The identifier identifies the payee. Limiting it to one element avoids multiple competing identifiers in the same place.

Please use no more than one identifier for the payee

ram:ID appears more than once in ram:PayeeTradeParty. This section may contain the identifier only once.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Check the ram:ID elements it contains and remove any extra occurrences.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:ID>1</ram:ID>
  <ram:ID>2</ram:ID>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:ID>1</ram:ID>
</ram:PayeeTradeParty>
Technical details

The XPath test count(ram:ID)<=1 allows zero or one ram:ID element and rejects more 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