Multiple URI communication details for the payee

Error FX-SCH-A-000987 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 in ram:PayeeTradeParty. This element may appear at most once in this context.

What the rule means

The communication detail contains a URI for the payee. In this context, the structure limits this detail to at most one element.

Please use no more than one URI communication detail for the payee

ram:URIUniversalCommunication appears more than once in ram:PayeeTradeParty. This element may appear at most once in this section.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Check the ram:URIUniversalCommunication elements it contains and remove any extra occurrences.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:PayeeTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:PayeeTradeParty>
✓ Correct
<ram:PayeeTradeParty>
  <ram:URIUniversalCommunication/>
</ram:PayeeTradeParty>
Technical details

The XPath test count(ram:URIUniversalCommunication)<=1 allows zero or one ram:URIUniversalCommunication element and rejects more than one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:PayeeTradeParty in the document-level payment terms.

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