GlobalID requires a schemeID attribute

Error FX-SCH-A-000440 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 required schemeID attribute is missing from ram:GlobalID.

What the rule means

The schemeID attribute identifies the scheme to which the global identifier in ram:GlobalID belongs.

Please add the scheme attribute for the seller’s global identifier

The seller’s global identifier in ram:GlobalID has no schemeID. Add this attribute to identify the scheme of the identifier.

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

The test checks whether the schemeID attribute is present in the ram:GlobalID context.

Where the rule applies

The rule applies to ram:GlobalID in the seller details SellerTradeParty.

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