At most one buyer URI communication

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

URIUniversalCommunication occurs more than once in BuyerTradeParty. This element may occur there at most once.

What the rule means

The rule limits the buyer’s URI communication details to at most one entry.

Please use no more than one URI communication for the buyer

The buyer details contain multiple URIUniversalCommunication elements. You can adjust the XML structure so that it contains no more than one.

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

Within BuyerTradeParty, the number of direct URIUniversalCommunication elements is checked to ensure it does not exceed one.

Where the rule applies

The rule applies to the buyer details in BuyerTradeParty in the invoice header.

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