Scheme ID required for the global identifier

Error FX-SCH-A-000872 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 schemeID attribute is missing from the invoicee’s GlobalID. This attribute is required in this context.

What the rule means

The schemeID attribute identifies the scheme of the global identifier. The rule requires the attribute to be present on GlobalID.

Please add the scheme ID for the invoicee’s global identifier

The schemeID attribute is missing from the invoicee’s GlobalID. You can resolve this by providing the attribute.

What to do
  1. Find the invoicee’s GlobalID.
  2. Add the schemeID attribute to it.
  3. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:GlobalID/>
✓ Correct
<ram:GlobalID schemeID="..."/>
Technical details

In the GlobalID context, the test checks for the presence of the schemeID attribute.

Where the rule applies

The rule applies to the invoicee’s GlobalID.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceeTradeParty/ram:GlobalID
Test expression (assert/@test)
@schemeID