Include a schemeID with the GlobalID

Error FX-SCH-A-001096 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 ram:GlobalID element.

What the rule means

The @schemeID attribute identifies the scheme used to interpret the identifier in ram:GlobalID.

Please add the scheme for the delivery recipient’s GlobalID

The delivery recipient’s GlobalID does not specify which scheme applies to the identifier. Add the attribute in the XML.

What to do
  1. Locate ram:GlobalID under ram:ShipToTradeParty.
  2. Add the @schemeID attribute to ram:GlobalID.
  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="scheme">123456</ram:GlobalID>
Technical details

The XPath test checks whether the @schemeID attribute exists on the current element.

Where the rule applies

The rule applies to the ram:GlobalID element of the delivery recipient under ShipToTradeParty for an invoice line.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:IncludedSupplyChainTradeLineItem/ ram:SpecifiedLineTradeDelivery/ram:ShipToTradeParty/ram:GlobalID
Test expression (assert/@test)
@schemeID