Provide the buyer email URI identifier

Error FX-SCH-A-000566 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. Exactly one URIID element must be present.

What the rule means

The buyer contact’s email communication details must contain exactly one URI identifier field.

Please provide exactly one URI identifier for the buyer email

The buyer contact’s email communication details are missing URIID or contain it more than once. You can adjust the structure so that it contains exactly one such element.

What to do
  1. Find EmailURIUniversalCommunication under DefinedTradeContact in BuyerTradeParty.
  2. Make sure it contains exactly one URIID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:EmailURIUniversalCommunication/>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
✓ Correct
<ram:BuyerTradeParty>
  <ram:DefinedTradeContact>
    <ram:EmailURIUniversalCommunication>
      <ram:URIID/>
    </ram:EmailURIUniversalCommunication>
  </ram:DefinedTradeContact>
</ram:BuyerTradeParty>
Technical details

Within EmailURIUniversalCommunication, the rule checks that exactly one direct URIID element is present.

Where the rule applies

The rule applies to the contact’s email communication details under BuyerTradeParty and DefinedTradeContact.

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