Allowed value for schemeID

Error FX-SCH-A-000877 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

If schemeID contains a value that is not in the code list used by this check, the test fails. An empty value also passes this test.

What the rule means

The rule restricts a non-empty schemeID value to entries in the code list used by this check.

Please use an allowed `schemeID` value for the invoicee’s legal organization identifier

The value of the schemeID attribute is not in the code list used by this check. You can leave the attribute empty or use a value listed there.

What to do
  1. Find ID under the invoicee’s SpecifiedLegalOrganization.
  2. Check the value of the schemeID attribute against the code list used by this check.
  3. Leave schemeID empty or use a value included in that list.
  4. Generate the invoice again and validate it again.
Technical details

The test passes if the checked value is empty or appears as an enumeration in the code list with id=12.

Where the rule applies

The rule applies to the schemeID attribute of ID in the invoicee’s SpecifiedLegalOrganization.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:InvoiceeTradeParty/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]