Provide exactly one email address

Error FX-SCH-A-001093 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 element ram:EmailURIUniversalCommunication does not contain exactly one ram:URIID. It is either missing or occurs more than once.

What the rule means

The contact’s email address for the delivery address is provided through ram:URIID. Exactly one value is required.

Please provide an email address for the contact

For the delivery address, the contact’s email communication does not contain exactly one ram:URIID. You can resolve this by adjusting the XML.

What to do
  1. Locate ram:URIID under ram:EmailURIUniversalCommunication.
  2. Make sure exactly one ram:URIID is present.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:EmailURIUniversalCommunication/>
✓ Correct
<ram:EmailURIUniversalCommunication>
  <ram:URIID>contact@example.com</ram:URIID>
</ram:EmailURIUniversalCommunication>
Technical details

The XPath condition checks whether the number of child elements named ram:URIID is exactly one.

Where the rule applies

The rule applies to the email communication of the contact under ShipToTradeParty for an invoice line.

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