Allowed value for the global identifier’s scheme

Error FX-SCH-A-000471 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 ram:GlobalID is not included in the designated code list.

What the rule means

schemeID identifies the scheme of the global identifier. A non-empty value must belong to the codes defined for this attribute.

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

The value of schemeID on ram:GlobalID is not recorded as an allowed code. Change it to an entry in the designated code list.

What to do
  1. Locate ram:GlobalID within ram:PayeeTradeParty.
  2. Check the value of the schemeID attribute and use a value included in code list 5.
  3. Generate the invoice again and validate it once more.
Good to know

The value may be empty or must be included in code list 5.

Technical details

The test allows an empty value; otherwise, the value of schemeID must be listed as an enumeration in code list 5.

Where the rule applies

The rule applies to the schemeID attribute of ram:GlobalID within ram:PayeeTradeParty.

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