Exactly one URI identifier for the invoicee

Error FX-SCH-A-000883 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 invoicee’s ram:URIUniversalCommunication does not contain exactly one ram:URIID. The element is either missing or occurs more than once.

What the rule means

The rule ensures that the invoicee’s URI communication entry contains exactly one identifier.

Please provide exactly one URI identifier for the invoicee

The invoicee’s URI communication entry does not contain exactly one identifier. You can correct this by providing exactly one ram:URIID there.

What to do
  1. Find ram:URIUniversalCommunication under ram:InvoiceeTradeParty.
  2. Ensure 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>https://example.org</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The test counts the direct ram:URIID elements in the context of ram:URIUniversalCommunication and requires a count of 1.

Where the rule applies

The rule applies to ram:URIUniversalCommunication within ram:InvoiceeTradeParty in the settlement details.

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