Provide exactly one delivery address URI

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

ram:URIID is missing from ram:URIUniversalCommunication or occurs more than once. The rule requires exactly one such element.

What the rule means

The URI communication for the final delivery address must contain exactly one URI identifier so that this information is unambiguous.

Please provide exactly one URI for the final delivery address

The URI information for the final delivery address does not contain exactly one ram:URIID element. Adjust the number so that exactly one element is present.

What to do
  1. Find ram:URIUniversalCommunication within ram:UltimateShipToTradeParty.
  2. Make sure it contains exactly one ram:URIID element.
  3. Recreate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID/>
</ram:URIUniversalCommunication>
Technical details

The rule counts the direct ram:URIID elements within ram:URIUniversalCommunication and requires a count of one.

Where the rule applies

The rule applies to the URI communication (ram:URIUniversalCommunication) of the final delivery address (ram:UltimateShipToTradeParty).

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