ram:URIID must occur exactly once

Error FX-SCH-A-001003 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 check requires exactly one ram:URIID.

What the rule means

The payee’s URI communication details must be represented by exactly one ram:URIID element.

Please provide the payee’s URI details exactly once

The payee’s URI communication details do not contain exactly one ram:URIID element. You can adjust the XML accordingly.

What to do
  1. Locate ram:URIUniversalCommunication within ram:PayeeTradeParty.
  2. Check how many times ram:URIID occurs in it.
  3. Ensure that it contains exactly one ram:URIID.
  4. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>...</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The XPath test counts the direct ram:URIID elements within ram:URIUniversalCommunication and requires the count to be 1.

Where the rule applies

The rule applies to the URI communication details (ram:URIUniversalCommunication) of the payee in ram:PayeeTradeParty.

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