At most one ram:URIUniversalCommunication for the ship-to party

Error FX-SCH-A-000816 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:ShipToTradeParty contains more than one ram:URIUniversalCommunication element.

What the rule means

ram:URIUniversalCommunication contains communication information in URI form for the ship-to party. In this context, this element may occur no more than once.

Please provide the ship-to party URI communication no more than once

ram:URIUniversalCommunication appears more than once under the ship-to party. This element may appear no more than once in this section.

What to do
  1. Find ram:ShipToTradeParty in the delivery information.
  2. Ensure that it contains no more than one ram:URIUniversalCommunication element.
  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 limits the number of direct ram:URIUniversalCommunication child elements of ram:ShipToTradeParty to at most one; zero occurrences are allowed.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:ShipToTradeParty.

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