Provide no more than one sales agent URI communication

Error FX-SCH-A-000736 Factur-X

Element 'ram:URIUniversalCommunication' 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:URIUniversalCommunication. This context allows no more than one such element.

What the rule means

The limit keeps the sales agent’s URI communication entry unambiguous in this location.

Please provide no more than one URI communication for the sales agent

Several ram:URIUniversalCommunication 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:URIUniversalCommunication 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:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:SalesAgentTradeParty>
✓ Correct
<ram:SalesAgentTradeParty>
  <ram:URIUniversalCommunication/>
</ram:SalesAgentTradeParty>
Technical details

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

Where the rule applies

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

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