ram:URIID requires the schemeID attribute

Error FX-SCH-A-001004 Factur-X

Attribute '@schemeID' is required in this context.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The ram:URIID element for the payee’s URI communication details does not have a schemeID attribute.

What the rule means

The schemeID attribute identifies the scheme of the URI identifier and is required in this XML context.

Please add `schemeID` to the payee’s URI details

The payee’s URI details are missing the schemeID attribute. Add this attribute to the ram:URIID element.

What to do
  1. Locate the ram:URIID element within ram:URIUniversalCommunication.
  2. Add the schemeID attribute to ram:URIID.
  3. Regenerate the invoice and validate it again.
What it looks like
✗ Triggers the message
<ram:URIID>...</ram:URIID>
✓ Correct
<ram:URIID schemeID="...">...</ram:URIID>
Technical details

The XPath test checks whether the schemeID attribute is present on the context element ram:URIID.

Where the rule applies

The rule applies to the ram:URIID of the payee’s URI communication details in ram:PayeeTradeParty.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:PayeeTradeParty/ram:URIUniversalCommunication/ ram:URIID
Test expression (assert/@test)
@schemeID