At most one URI communication

Error FX-SCH-A-000675 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

BuyerTaxRepresentativeTradeParty contains more than one ram:URIUniversalCommunication element.

What the rule means

At most one entry is permitted for the URI communication of the buyer’s tax representative.

Please use no more than one URI communication for the buyer’s tax representative

The buyer’s tax representative has multiple ram:URIUniversalCommunication entries. You can resolve this by keeping no more than one such entry in the invoice.

What to do
  1. Find BuyerTaxRepresentativeTradeParty in the invoice.
  2. Count the ram:URIUniversalCommunication elements it contains.
  3. Remove any extra entries so that no more than one remains.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:BuyerTaxRepresentativeTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:BuyerTaxRepresentativeTradeParty>
✓ Correct
<ram:BuyerTaxRepresentativeTradeParty>
  <ram:URIUniversalCommunication/>
</ram:BuyerTaxRepresentativeTradeParty>
Technical details

The test counts the direct ram:URIUniversalCommunication elements in the context of BuyerTaxRepresentativeTradeParty and permits no more than one.

Where the rule applies

The rule applies to the URI communication within BuyerTaxRepresentativeTradeParty.

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