Exactly one ram:URIID for the buyer’s tax representative communication

Error FX-SCH-A-000691 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 the buyer’s tax representative’s ram:URIUniversalCommunication. The element is either missing or occurs more than once.

What the rule means

The communication information must contain exactly one URI identifier so that it can be recorded unambiguously.

Please provide exactly one URI identifier for the buyer’s tax representative

The buyer’s tax representative communication contains no URI identifier or more than one. This can be corrected by including exactly one ram:URIID.

What to do
  1. Check ram:URIUniversalCommunication under ram:BuyerTaxRepresentativeTradeParty.
  2. Make sure it contains exactly one ram:URIID.
  3. Generate the invoice again and validate it again.
What it looks like
✗ Triggers the message
<ram:URIUniversalCommunication/>
✓ Correct
<ram:URIUniversalCommunication>
  <ram:URIID>https://example.org</ram:URIID>
</ram:URIUniversalCommunication>
Technical details

The number of direct child elements ram:URIID is checked for exactly one using count(ram:URIID)=1.

Where the rule applies

The rule applies to ram:URIUniversalCommunication of ram:BuyerTaxRepresentativeTradeParty in the agreement between seller and buyer.

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