At most one URI communication for the seller item

Error FX-SCH-A-001040 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 within ram:ItemSellerTradeParty.

What the rule means

The XML structure allows at most one ram:URIUniversalCommunication element in this seller-item context. Multiple such elements do not conform to the specified structure.

Please use no more than one URI communication for the seller item

More than one ram:URIUniversalCommunication element is included for the seller item on this invoice line. The XML structure allows no more than one here.

What to do
  1. Find all ram:URIUniversalCommunication elements in ram:ItemSellerTradeParty.
  2. Make sure this element contains no more than one ram:URIUniversalCommunication.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:ItemSellerTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:ItemSellerTradeParty>
✓ Correct
<ram:ItemSellerTradeParty>
  <ram:URIUniversalCommunication/>
</ram:ItemSellerTradeParty>
Technical details

The rule counts the direct ram:URIUniversalCommunication elements in context and requires their number to be no greater than one.

Where the rule applies

The rule applies to ram:ItemSellerTradeParty within the agreement for an invoice line.

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