Use an allowed schemeID value for the legal organization identifier

Error FX-SCH-A-000444 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 the schemeID attribute on ram:ID is not included in the code list used by this rule.

What the rule means

The code list restricts the scheme identifiers allowed for the seller’s legal organization identifier.

Please use an allowed scheme for the seller’s legal organization identifier

The value of schemeID on ram:ID in ram:SpecifiedLegalOrganization is not allowed by the applicable code list. Replace it with a value listed there.

What to do
  1. Find ram:ID in ram:SpecifiedLegalOrganization within the seller details.
  2. Check the value of schemeID against the code list used by this rule.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts an empty code value or a value 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 in the seller details.

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