At most one ID for the invoicing party

Error FX-SCH-A-000886 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:InvoicerTradeParty contains more than one ram:ID element.

What the rule means

Multiple ram:ID entries are not provided for the invoicing party in this element context.

Please provide no more than one ID for the invoicing party

More than one ram:ID element is present for the invoicing party. This element may occur no more than once in this part of the XML.

What to do
  1. Find ram:InvoicerTradeParty in the settlement details.
  2. Review its ram:ID elements and remove any additional occurrences.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:InvoicerTradeParty>
  <ram:ID>123</ram:ID>
  <ram:ID>456</ram:ID>
</ram:InvoicerTradeParty>
✓ Correct
<ram:InvoicerTradeParty>
  <ram:ID>123</ram:ID>
</ram:InvoicerTradeParty>
Technical details

The test counts the direct ram:ID elements in ram:InvoicerTradeParty and allows no more than one.

Where the rule applies

The rule applies to ram:ID within ram:InvoicerTradeParty in the settlement details.

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