Allowed value for the legal organization’s scheme

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

What the rule means

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

Please use an allowed value for the legal organization’s scheme

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

What to do
  1. Locate ram:ID within ram:SpecifiedLegalOrganization of ram:PayeeTradeParty.
  2. Check the value of the schemeID attribute and use a value included in code list 6.
  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 6.

Technical details

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

Where the rule applies

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

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