Multiple identifiers for the sales agent

Error FX-SCH-A-000733 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:SalesAgentTradeParty. The element may occur no more than once.

What the rule means

The limit keeps the identifier of the party specified as the sales agent unambiguous and prevents multiple ram:ID values in this location.

Please provide no more than one identifier for the sales agent

More than one ram:ID element is entered for the sales agent. You can correct the invoice by ensuring that no more than one identifier is included there.

What to do
  1. Locate ram:SalesAgentTradeParty in the agreement information.
  2. Check the ram:ID elements it contains.
  3. Remove any extra ram:ID elements so that no more than one remains.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SalesAgentTradeParty>
  <ram:ID>123</ram:ID>
  <ram:ID>456</ram:ID>
</ram:SalesAgentTradeParty>
✓ Correct
<ram:SalesAgentTradeParty>
  <ram:ID>123</ram:ID>
</ram:SalesAgentTradeParty>
Technical details

The rule counts the direct ram:ID elements in ram:SalesAgentTradeParty and permits at most one.

Where the rule applies

This rule applies to ram:ID within ram:SalesAgentTradeParty in the agreement information.

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