Include ram:URIUniversalCommunication no more than once

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

The ram:URIUniversalCommunication element occurs more than once within ram:ShipToTradeParty. This element may appear there no more than once.

What the rule means

ram:URIUniversalCommunication contains a URI communication entry for the delivery recipient. The rule limits this element to one occurrence.

Please include the delivery recipient URI communication only once

The delivery recipient contains ram:URIUniversalCommunication more than once. You can resolve the issue by limiting it to no more than one element.

What to do
  1. Locate ram:ShipToTradeParty in the invoice line’s delivery information.
  2. Remove extra ram:URIUniversalCommunication elements so that no more than one remains.
  3. Generate the invoice again and validate it once more.
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 within ram:ShipToTradeParty and passes when no more than one is present.

Where the rule applies

The rule applies within ram:ShipToTradeParty in the delivery information for an invoice line.

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