Allowed legal organization scheme code

Error FX-SCH-A-000806 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:ID is neither empty nor included in the code list used by this rule.

What the rule means

The code list defines which values may identify the scheme of the legal organization’s identifier. A different value is not allowed for this scheme identifier.

Please check the legal organization ID scheme code

The value of @schemeID on the legal organization’s ram:ID is not accepted by this rule. You can leave the attribute empty or use a value included in the applicable code list.

What to do
  1. Check the value of @schemeID on ram:ID in ram:SpecifiedLegalOrganization.
  2. Leave the value empty or use a value included in the code list.
  3. Generate the invoice again and validate it.
Good to know

For this rule, an empty value or an entry from code list 12 is allowed.

Technical details

The test accepts an empty code value or a value present in the code list identified by 12.

Where the rule applies

The rule applies to @schemeID of ram:ID in ram:SpecifiedLegalOrganization of ram:ShipFromTradeParty.

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