Provide no more than one URI communication for the tax representative

Error FX-SCH-A-000759 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:SellerTaxRepresentativeTradeParty contains more than one ram:URIUniversalCommunication element. In this context, this element may occur no more than once.

What the rule means

The rule limits the seller’s tax representative URI communication entries to no more than one.

Please provide no more than one URI communication for the seller’s tax representative

The seller’s tax representative details contain multiple ram:URIUniversalCommunication elements. This section allows no more than one such element.

What to do
  1. Remove any extra ram:URIUniversalCommunication elements from ram:SellerTaxRepresentativeTradeParty.
  2. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:SellerTaxRepresentativeTradeParty>
  <ram:URIUniversalCommunication/>
  <ram:URIUniversalCommunication/>
</ram:SellerTaxRepresentativeTradeParty>
✓ Correct
<ram:SellerTaxRepresentativeTradeParty>
  <ram:URIUniversalCommunication/>
</ram:SellerTaxRepresentativeTradeParty>
Technical details

The test counts direct ram:URIUniversalCommunication elements in the ram:SellerTaxRepresentativeTradeParty context and allows no more than one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:SellerTaxRepresentativeTradeParty in the invoice agreement.

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