Exactly one URI identifier for the buyer agent

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

The ram:URIUniversalCommunication element does not contain exactly one ram:URIID. The URI identifier is either missing or occurs more than once.

What the rule means

The buyer agent’s communication must be specified by exactly one URI identifier.

Please provide exactly one URI identifier for the buyer agent

ram:URIID is missing or occurs more than once in the buyer agent’s communication. This can be resolved by having a single URI identifier.

What to do
  1. Locate ram:URIUniversalCommunication for the buyer agent.
  2. Make sure it contains exactly one ram:URIID.
  3. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>urn:example:buyer-agent</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The rule checks whether there is exactly one child ram:URIID element.

Where the rule applies

In the buyer agent’s communication under the invoice agreement.

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