Invalid schemeID value for the InvoicerTradeParty

Error FX-SCH-A-000899 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 contained in the code list identified by 12. An empty value is also accepted by the test condition.

What the rule means

When provided, the identifier for the legal organization characteristic must match a value allowed by code list 12. A value outside that list cannot be unambiguously classified.

Please use an allowed schemeID value for `ram:ID`

The rule does not recognize the schemeID value on ram:ID as an allowed value. You can correct it using code list 12.

What to do
  1. Locate ram:ID within ram:SpecifiedLegalOrganization of ram:InvoicerTradeParty.
  2. Check the schemeID attribute value against code list 12.
  3. Generate the invoice again and validate it once more.
Technical details

The test accepts a schemeID value if it is empty or found as an enumeration/@value in code list 12.

Where the rule applies

The rule applies to ram:ID within ram:SpecifiedLegalOrganization of ram:InvoicerTradeParty in the invoice settlement.

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