Allowed scheme for the global identifier

Error FX-SCH-A-000821 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 value of @schemeID on ram:GlobalID is not in the code list used by this rule. The test permits an empty value.

What the rule means

@schemeID identifies the scheme of the global identifier. The check restricts its value to entries in the associated code list.

Please use an allowed scheme for the delivery location’s global identifier

The scheme in @schemeID of ram:GlobalID is not in the associated code list. You can change the value to one of the entries allowed there.

What to do
  1. Find ram:GlobalID in ShipToTradeParty.
  2. Check the value of @schemeID against the code list applicable to this identifier.
  3. Use a value listed there, or leave the value empty.
  4. Regenerate the invoice and check it again.
Technical details

The XPath test permits an empty $codeValue11; otherwise, the value must occur as an enumeration in codedb/cl[@id=11].

Where the rule applies

Applies to ram:GlobalID for the delivery location in ShipToTradeParty; the value of @schemeID is checked.

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