Provide exactly one URIID for buyer communication

Error FX-SCH-A-000168 Factur-X

Element 'ram:URIID' must occur exactly 1 times.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The buyer’s URIUniversalCommunication contains no URIID element or more than one URIID element. It must contain exactly one URIID element.

What the rule means

The URIID element contains the URI value for this buyer communication. Exactly one element ensures that the value is stated unambiguously.

Please provide exactly one URI for buyer communication

The buyer’s URI communication does not contain exactly one URIID element. You can resolve this by adjusting the number of URIID elements.

What to do
  1. Open the buyer’s URIUniversalCommunication.
  2. Make sure it contains exactly one URIID element.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>...</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The test counts the direct URIID elements under URIUniversalCommunication and requires the count to equal one.

Where the rule applies

This rule applies to the buyer’s URI communication in the URIUniversalCommunication element.

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