At most one ram:URIUniversalCommunication

Error FX-SCH-A-001091 Factur-X

Element 'ram:URIUniversalCommunication' may occur at maximum 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

ram:URIUniversalCommunication occurs more than once in ram:ShipToTradeParty.

What the rule means

ram:URIUniversalCommunication contains a URI communication reference for the ship-to party. The rule limits this element to at most one occurrence.

Please use no more than one URI communication reference for the ship-to party

ram:URIUniversalCommunication is provided more than once for the ship-to party. You can adjust the invoice so that it contains no more than one such element there.

What to do
  1. Find ram:ShipToTradeParty for the delivery address of the invoice line.
  2. Count the ram:URIUniversalCommunication elements it contains and remove any extra occurrences.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:ShipToTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:ShipToTradeParty>
✓ Correct
<ram:ShipToTradeParty>
  <ram:URIUniversalCommunication/>
</ram:ShipToTradeParty>
Technical details

The test counts the direct ram:URIUniversalCommunication elements under ram:ShipToTradeParty and passes when their count is at most one.

Where the rule applies

The rule applies to ram:ShipToTradeParty for the delivery address of an invoice line.

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