Allowed SchemeID value for GlobalID

Error FX-SCH-A-000840 Factur-X

Value of '@schemeID' is not allowed.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

The non-empty value of schemeID on GlobalID is not included in the list of values allowed for this scheme. An empty value is exempt from this check.

What the rule means

A non-empty schemeID value must match one of the values defined for the scheme so that the identifier scheme is specified unambiguously.

Please use an allowed SchemeID value for the ultimate ship-to party’s identifier

The non-empty schemeID value on ram:GlobalID is not allowed for this identifier. Use a value from the list permitted for this scheme; an empty value is exempt from this check.

What to do
  1. Find ram:GlobalID within ram:UltimateShipToTradeParty.
  2. Check the value of the schemeID attribute and use a value included in its associated value list, or leave the attribute empty.
  3. Generate the invoice again and check it once more.
Technical details

The check accepts an empty schemeID value or a non-empty value listed in the enumeration with code-list ID 11.

Where the rule applies

The rule applies to the value of the schemeID attribute on the ultimate ship-to party’s GlobalID element.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeDelivery/ ram:UltimateShipToTradeParty/ram:GlobalID
Test expression (assert/@test)
string-length($codeValue11)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=11]/enumeration[@value=$codeValue11]