At most one URI communication for the invoice line seller

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:ItemSellerTradeParty contains more than one ram:URIUniversalCommunication. The element may occur at most once.

What the rule means

ram:URIUniversalCommunication contains a URI communication entry for the invoice line seller. Repeating this element at this location is not permitted.

Please include no more than one URI communication for the invoice line seller

ram:URIUniversalCommunication appears more than once for the invoice line seller. The field may be omitted or included once, but it must not be repeated.

What to do
  1. Locate ram:ItemSellerTradeParty in the affected invoice line.
  2. Remove extra ram:URIUniversalCommunication elements so that no more than one remains.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:ItemSellerTradeParty>
  <ram:URIUniversalCommunication>https://example.org/1</ram:URIUniversalCommunication>
  <ram:URIUniversalCommunication>https://example.org/2</ram:URIUniversalCommunication>
</ram:ItemSellerTradeParty>
✓ Correct
<ram:ItemSellerTradeParty>
  <ram:URIUniversalCommunication>https://example.org/1</ram:URIUniversalCommunication>
</ram:ItemSellerTradeParty>
Technical details

The rule counts the direct ram:URIUniversalCommunication elements in ram:ItemSellerTradeParty and allows zero or one occurrence.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:ItemSellerTradeParty for an invoice line seller.

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