Provide schemeID for GlobalID

Error FX-SCH-A-001046 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 identification scheme for the value in ram:GlobalID. Without this attribute, the identifier's scheme is not specified in the XML structure.

Please add schemeID to the GlobalID

The schemeID attribute, which identifies the identification scheme, is missing from ram:GlobalID. Add the attribute so the identifier is associated with a scheme in the XML structure.

What to do
  1. Find ram:GlobalID in the agreement for the invoice line.
  2. Add the schemeID attribute to ram:GlobalID.
  3. Regenerate the invoice and check it again.
What it looks like
✗ Triggers the message
<ram:GlobalID>12345</ram:GlobalID>
✓ Correct
<ram:GlobalID schemeID="any-value">12345</ram:GlobalID>
Technical details

In the context of ram:GlobalID, the rule checks whether the @schemeID attribute exists.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID within the agreement for an invoice line.

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