At most one buyer agent URI communication

Error FX-SCH-A-000651 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

ram:BuyerAgentTradeParty contains more than one ram:URIUniversalCommunication. This element may occur at most once there.

What the rule means

The rule limits the buyer agent’s URI communication information to no more than one corresponding element.

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

Several ram:URIUniversalCommunication elements are present in ram:BuyerAgentTradeParty. The rule allows at most one there; this information is not required.

What to do
  1. Locate ram:BuyerAgentTradeParty in the invoice agreement section.
  2. Remove extra ram:URIUniversalCommunication elements so that no more than one remains.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerAgentTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:BuyerAgentTradeParty>
✓ Correct
<ram:BuyerAgentTradeParty>
  <ram:URIUniversalCommunication/>
</ram:BuyerAgentTradeParty>
Technical details

The test counts the direct ram:URIUniversalCommunication elements under ram:BuyerAgentTradeParty and requires no more than 1; the element may be absent.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:BuyerAgentTradeParty in the document-level agreement section.

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