Allowed value for the legal organization’s schemeID

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 attribute is also allowed by the test.

What the rule means

schemeID identifies the scheme for the legal organization’s ram:ID. Any value provided must match the designated code list.

Please use an allowed `schemeID` for the legal organization identifier

The value of schemeID on ram:ID is not recognized by the rule as allowed. You can leave the attribute empty or use a value from the designated code list.

What to do
  1. Locate ram:ID under SpecifiedLegalOrganization for the ultimate ship-to party.
  2. Compare the value of schemeID with the designated code list, or leave the attribute empty.
  3. Generate the invoice again and validate it.
Technical details

The test accepts an empty schemeID or a value present in code list 12 in FACTUR-X_EXTENDED_codedb.xml.

Where the rule applies

The rule applies to the schemeID attribute of ram:ID in SpecifiedLegalOrganization for the ultimate ship-to 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]