The buyer agent’s email communication requires a URI

Error FX-SCH-A-000653 Factur-X

Element 'ram:URIID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

URIID is missing from EmailURIUniversalCommunication or occurs more than once. URIID must appear exactly once.

What the rule means

The buyer agent’s email communication requires exactly one URIID element. Without it, the URI value provided for this structure is absent.

Please provide exactly one URI for the buyer agent’s email communication

URIID is missing or appears more than once in the buyer agent’s email communication. Having exactly one URIID element resolves this issue.

What to do
  1. Find EmailURIUniversalCommunication in the buyer agent’s contact.
  2. Make sure it contains exactly one URIID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerAgentTradeParty>
  <ram:DefinedTradeContact>
    <ram:EmailURIUniversalCommunication/>
  </ram:DefinedTradeContact>
</ram:BuyerAgentTradeParty>
✓ Correct
<ram:BuyerAgentTradeParty>
  <ram:DefinedTradeContact>
    <ram:EmailURIUniversalCommunication>
      <ram:URIID>contact@example.com</ram:URIID>
    </ram:EmailURIUniversalCommunication>
  </ram:DefinedTradeContact>
</ram:BuyerAgentTradeParty>
Technical details

The test counts the direct URIID child elements of EmailURIUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to EmailURIUniversalCommunication within the DefinedTradeContact of BuyerAgentTradeParty.

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