Payee communication address at most once

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. The element may occur at most once, but it may also be absent.

What the rule means

The communication address is an optional detail of the payee. The rule limits it to one occurrence within this element.

Please include the payee’s communication address no more than once

The payee’s communication address has been entered more than once. Remove additional entries so it occurs no more than once.

What to do
  1. Locate ram:PayeeTradeParty in the payment terms.
  2. Check its ram:URIUniversalCommunication elements and remove any additional entries.
  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 rule counts the direct ram:URIUniversalCommunication elements in ram:PayeeTradeParty and passes when the count is at most one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within the payee ram:PayeeTradeParty in the payment terms.

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