GlobalID requires the schemeID attribute

Error FX-SCH-A-000470 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 payee party’s ram:GlobalID element.

What the rule means

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

Please add the schemeID attribute to the payee’s global identifier

The payee party’s global identifier is missing the schemeID attribute. Add the attribute to the ram:GlobalID element.

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

The XPath test checks whether the schemeID attribute exists on ram:GlobalID; it does not validate its value.

Where the rule applies

The rule applies to the payee party’s global identifier in the invoice settlement.

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