Exactly one URI identifier is required

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 does not occur exactly once in ram:URIUniversalCommunication. The element is either missing or appears more than once.

What the rule means

ram:URIID contains the URI identifier for the ultimate ship-to party. The rule requires exactly one such element for this communication.

Please provide exactly one URI identifier for the ultimate ship-to party

The ultimate ship-to party’s URI communication does not contain exactly one ram:URIID. You can resolve this by ensuring that exactly one such element is present.

What to do
  1. Locate ram:URIUniversalCommunication under ram:UltimateShipToTradeParty.
  2. Ensure that it contains exactly one ram:URIID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>...</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The XPath test counts the direct ram:URIID elements and passes only when the count is one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication of the ultimate ship-to party (ram:UltimateShipToTradeParty).

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