Exactly one payer URI identifier

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:URIID does not occur exactly once in the payer’s URIUniversalCommunication. The element is either missing or repeated.

What the rule means

ram:URIID contains the URI identification value for the payer’s communication. Exactly one element is required to provide this value unambiguously.

Please provide exactly one URI identifier for the payer

The payer’s URI communication does not contain exactly one ram:URIID element. You can resolve this by providing exactly one URI identifier there.

What to do
  1. Locate URIUniversalCommunication within PayerTradeParty.
  2. Check whether ram:URIID is missing or occurs more than once.
  3. Ensure that exactly one ram:URIID element is present.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication>
  <ram:URIID>https://example.org</ram:URIID>
  <ram:URIID>https://example.com</ram:URIID>
</ram:URIUniversalCommunication>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>https://example.org</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

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

Where the rule applies

The rule applies to URIUniversalCommunication within PayerTradeParty in the invoice settlement information.

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