ram:URIUniversalCommunication may occur at most once

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

The ram:ShipToTradeParty element contains more than one ram:URIUniversalCommunication element. At most one is permitted in this context.

What the rule means

The rule limits the number of URI communication elements for the delivery recipient to at most one.

Please use no more than one URI communication for the delivery recipient

Several ram:URIUniversalCommunication elements are present in ram:ShipToTradeParty. Only one is allowed in this section.

What to do
  1. Locate ram:ShipToTradeParty in the delivery section.
  2. Remove extra ram:URIUniversalCommunication elements so that no more than one remains.
  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 check counts the direct child elements ram:URIUniversalCommunication of ram:ShipToTradeParty and requires their number to be no greater than one.

Where the rule applies

The rule applies within the ram:ShipToTradeParty element in the delivery section.

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