Exactly one URIID for the communication

Error FX-SCH-A-001056 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 ram:URIUniversalCommunication. The rule requires exactly one such element.

What the rule means

The rule ensures that the URI communication contains exactly one identifier.

Please provide exactly one `ram:URIID` for the item seller’s communication

The item seller’s URI communication does not contain exactly one ram:URIID element. You can check the number of identifier elements.

What to do
  1. Find ram:URIUniversalCommunication for the ram:ItemSellerTradeParty on the affected invoice line.
  2. Check that exactly one direct ram:URIID element is present.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication>
  <ram:URIID>A</ram:URIID>
  <ram:URIID>B</ram:URIID>
</ram:URIUniversalCommunication>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>A</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

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

Where the rule applies

The rule applies to ram:URIUniversalCommunication of the item seller on an invoice line.

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