Exactly one URI identifier for the manufacturer contact

Error FX-SCH-A-001170 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

There is not exactly one ram:URIID element in ram:URIUniversalCommunication. It is either missing or occurs more than once.

What the rule means

The manufacturer's communication entry must contain exactly one URI identifier. A missing or repeated identifier does not meet this structural requirement.

Please provide exactly one URI identifier for the manufacturer contact

The product manufacturer's communication entry does not contain exactly one ram:URIID element. You can correct the invoice by including exactly one such element there.

What to do
  1. Locate ram:URIUniversalCommunication under ram:ManufacturerTradeParty.
  2. Check how many times ram:URIID occurs in it.
  3. Ensure that it contains exactly one ram:URIID element.
  4. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID schemeID="value">value</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The test counts the direct ram:URIID elements in ram:URIUniversalCommunication and requires the count to be exactly one.

Where the rule applies

The rule applies to ram:URIUniversalCommunication for the product manufacturer.

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