Exactly one ram:URIID for the dispatch location address

Error FX-SCH-A-000812 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 missing or occurs more than once.

What the rule means

ram:URIID contains the identifier for URI communication of the dispatch location. Exactly one element ensures that this information is present unambiguously in this XML context.

Please provide exactly one URI identifier for the dispatch location

ram:URIID is missing from the dispatch location ram:URIUniversalCommunication or the element appears more than once. The information can be structured unambiguously.

What to do
  1. Open ram:URIUniversalCommunication under ram:ShipFromTradeParty.
  2. Ensure that it contains exactly one ram:URIID element.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>IDENTIFIER</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The test requires the number of direct ram:URIID child elements of ram:URIUniversalCommunication to be exactly one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication under ram:ShipFromTradeParty.

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