Exactly one communication identifier required

Error FX-SCH-A-001123 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 identifier for the URI communication information. Exactly one element is required to make this information unambiguous.

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

ram:URIUniversalCommunication for the ultimate ship-to party is missing ram:URIID or contains it more than once. Exactly one element makes the information unambiguous.

What to do
  1. Check ram:URIUniversalCommunication for the ultimate ship-to party.
  2. Ensure that it contains exactly one ram:URIID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>...</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The test requires the number of direct ram:URIID elements in ram:URIUniversalCommunication to equal 1.

Where the rule applies

The rule applies to ram:URIUniversalCommunication of the ultimate ship-to party for an invoice line.

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