Provide exactly one URI identifier

Error FX-SCH-A-000752 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:URIID is missing from ram:URIUniversalCommunication or occurs more than once. The element must occur exactly once.

What the rule means

The sales agent’s URI communication contains exactly one URI identifier.

Please provide exactly one URI identifier for the sales agent

The sales agent’s URI communication is missing a URI identifier or has it entered more than once. Exactly one ram:URIID element must appear here.

What to do
  1. Find the sales agent’s ram:URIUniversalCommunication element.
  2. Make sure it contains exactly one ram:URIID element.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>https://example.com</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 the sales agent’s ram:URIUniversalCommunication in the seller section.

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