Provide no more than one sales agent identifier

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

The ram:SalesAgentTradeParty element contains more than one ram:ID. This context allows no more than one sales agent identifier.

What the rule means

Limiting the element to one identifier provides a single, unambiguous identifier for the sales agent.

Please provide no more than one sales agent identifier

Several ram:ID elements are present in the sales agent section. This element may appear there no more than once.

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

The rule counts the direct ram:ID elements under ram:SalesAgentTradeParty and allows zero or one.

Where the rule applies

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

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