The ship-from party’s email communication requires a URI

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

The ram:EmailURIUniversalCommunication element does not contain exactly one ram:URIID. It is either missing or occurs more than once.

What the rule means

ram:URIID contains the identifier for the email communication. Exactly one element is required so that this information is present and unambiguous in the XML structure.

Please provide exactly one URI identifier for the ship-from party’s email

The contact’s email communication for the ship-from party is missing a URI identifier or has more than one. The entry can be completed with exactly one ram:URIID.

What to do
  1. Locate the email communication under ram:DefinedTradeContact for ram:ShipFromTradeParty.
  2. Make sure it contains exactly one ram:URIID element.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:DefinedTradeContact>
  <ram:EmailURIUniversalCommunication/>
</ram:DefinedTradeContact>
✓ Correct
<ram:DefinedTradeContact>
  <ram:EmailURIUniversalCommunication>
    <ram:URIID/>
  </ram:EmailURIUniversalCommunication>
</ram:DefinedTradeContact>
Technical details

The check counts the direct ram:URIID elements in ram:EmailURIUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:URIID within the email communication of the contact at ram:ShipFromTradeParty.

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