At most one ram:URIUniversalCommunication for the invoicee

Error FX-SCH-A-000867 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:InvoiceeTradeParty. This element may appear there at most once.

What the rule means

The limit prevents multiple URI communication entries for the same invoicee within this element.

Please use no more than one `ram:URIUniversalCommunication` for the invoicee

The invoicee has multiple ram:URIUniversalCommunication elements. Keep no more than one.

What to do
  1. Find ram:InvoiceeTradeParty in the invoice.
  2. Remove additional 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:InvoiceeTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:InvoiceeTradeParty>
✓ Correct
<ram:InvoiceeTradeParty>
  <ram:URIUniversalCommunication/>
</ram:InvoiceeTradeParty>
Technical details

The test counts the direct ram:URIUniversalCommunication elements in ram:InvoiceeTradeParty and requires a count of no more than one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:InvoiceeTradeParty, the invoicee.

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