Allowed scheme code for the global identifier

Error FX-SCH-A-000993 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 is not included in the code list checked for this attribute. An empty value is also explicitly allowed by the test.

What the rule means

The code in schemeID identifies the scheme of the global identifier. The test accepts an empty value or a code from the associated code list.

Please use an allowed code for the global identifier’s scheme

The value of schemeID on the payee’s ram:GlobalID is not recognized as allowed. The test permits an empty value or a code from the associated code list.

What to do
  1. Locate the payee’s ram:GlobalID and check the value of schemeID.
  2. Use a value included in the associated code list, or leave the value empty.
  3. Generate the invoice again and validate it.
Technical details

The XPath test accepts the value if it is empty or occurs in code list 11 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the value of the schemeID attribute on the payee’s ram:GlobalID.

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