Provide the URI identifier exactly once

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

ram:URIUniversalCommunication contains no ram:URIID or contains more than one.

What the rule means

The communication entry must contain exactly one URI identifier so that it has one unambiguous identifier.

Please provide the URI identifier exactly once

The seller tax representative’s communication entry is missing ram:URIID or contains it more than once. This entry must contain exactly one such element.

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

The test counts the direct ram:URIID elements in ram:URIUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to ram:URIID within the seller tax representative’s ram:URIUniversalCommunication.

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