Allowed identification scheme for the legal organization

Error FX-SCH-A-000997 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 the payee’s legal organization ram:ID is not in the permitted code list. This rule also accepts an empty code value.

What the rule means

The identification scheme indicates how to interpret the legal organization’s identifier. An unpermitted scheme value can prevent the identifier from being classified unambiguously.

Please use an allowed identification scheme for the payee’s legal organization

The identification scheme on the payee’s legal organization ram:ID is not recognized as an allowed value. You can adjust the scheme value here.

What to do
  1. Check the value of the schemeID attribute on the payee’s legal organization ram:ID.
  2. Compare the value with the codes permitted for this identification scheme.
  3. Generate the invoice again and validate it once more.
Technical details

The code value of the schemeID attribute is checked against the enumeration with identifier 12 in the code list. An empty value also satisfies the condition.

Where the rule applies

The rule applies to the identification scheme of the payee’s legal organization in the payment terms.

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