At most one identifier for the invoicee

Error FX-SCH-A-000864 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:InvoiceeTradeParty.

What the rule means

The structure allows at most one identifier in ram:ID within the invoicee. Multiple occurrences do not meet this requirement.

Please use no more than one identifier for the invoicee

ram:ID is entered more than once for the invoicee. Removing the duplicate entries makes it possible to validate the invoice again.

What to do
  1. Locate ram:InvoiceeTradeParty.
  2. Check its ram:ID elements and retain no more than one.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:InvoiceeTradeParty>
  <ram:ID>1</ram:ID>
  <ram:ID>2</ram:ID>
</ram:InvoiceeTradeParty>
✓ Correct
<ram:InvoiceeTradeParty>
  <ram:ID>1</ram:ID>
</ram:InvoiceeTradeParty>
Technical details

The test counts the direct ram:ID elements of ram:InvoiceeTradeParty and requires the count to be no greater than one.

Where the rule applies

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

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