Use an allowed identifier scheme for the final delivery organization

Error FX-SCH-A-000844 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 the schemeID attribute of ram:ID is not included in the code list used by this rule. An empty value also passes this specific test.

What the rule means

The scheme identifies the type of identifier used for the legal organization. The test also explicitly permits an empty value.

Please use an allowed identifier scheme for the final delivery organization

The schemeID attribute of ram:ID contains a value that is not recognized by the code list used for this test. An empty value also passes this specific test.

What to do
  1. Open ram:ID in ram:SpecifiedLegalOrganization of the final delivery party.
  2. For schemeID, use a value from the code list allowed by the test, or leave the value empty.
  3. Generate the invoice again and validate it again.
Technical details

The test accepts an empty checked code value or a value listed as an enumeration in code list 12.

Where the rule applies

The rule checks the schemeID attribute of ram:ID within the ram:SpecifiedLegalOrganization of the final delivery party.

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