Exactly one URI ID

Error FX-SCH-A-000946 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 does not contain exactly one ram:URIID element. The element is either missing or appears more than once.

What the rule means

The payer’s URI communication entry must contain exactly one URI ID entry.

Please provide exactly one URI ID for the payer

The payer’s URI communication entry is missing a URI ID or contains it more than once. Exactly one ram:URIID element resolves this issue.

What to do
  1. Locate ram:URIUniversalCommunication under ram:PayerTradeParty.
  2. Make sure it contains exactly one ram:URIID element.
  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 under ram:URIUniversalCommunication and requires the count to be 1.

Where the rule applies

The rule applies to ram:URIUniversalCommunication for the payer (ram:PayerTradeParty).

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