Exactly one URI ID for the tax representative

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

URIID is missing from URIUniversalCommunication or occurs more than once. It must occur exactly once there.

What the rule means

URIID contains the URI information for communicating with the tax representative. The required cardinality ensures that the information is unambiguous.

Please provide exactly one URI ID for the tax representative

The tax representative’s URI communication is missing URIID or contains it more than once. This can be resolved by providing it once.

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

The rule counts the URIID elements inside URIUniversalCommunication and requires exactly one.

Where the rule applies

The rule applies to the URI communication of the seller’s tax representative under SellerTaxRepresentativeTradeParty.

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