Exactly one buyer URI identifier is required

Error FX-SCH-A-000168 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 element is either missing or occurs more than once.

What the rule means

The buyer’s URI communication must contain exactly one URI identifier so that the associated communication information has an unambiguous structure.

Please provide exactly one URI identifier for the buyer

The buyer’s URI communication does not contain exactly one ram:URIID. You can adjust the number of URI identifiers.

What to do
  1. Find the buyer’s URI communication in ram:URIUniversalCommunication.
  2. Make sure it contains exactly one ram:URIID.
  3. Generate the invoice again and check 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 within ram:URIUniversalCommunication and requires a count of 1.

Where the rule applies

The rule applies to the buyer’s URI communication (ram:URIUniversalCommunication).

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