Invalid identification scheme for the buyer organization

Error FX-SCH-A-000699 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 @schemeID attribute of ram:ID contains a value that is not included in the applicable code list.

What the rule means

The identification scheme specifies the system used to interpret the legal organization’s identifier. An unallowed scheme value can prevent that identifier from being classified correctly.

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

An unallowed identification scheme is specified for the buyer’s legal organization identifier. You can resolve the issue by aligning the checked scheme value with the permitted code list.

What to do
  1. Locate ram:SpecifiedLegalOrganization in the buyer details.
  2. Check the value of @schemeID on ram:ID against the applicable code list.
  3. Change the scheme value to an allowed value, or leave it empty if no value is to be supplied.
  4. Generate the invoice again and validate it again.
Technical details

The test permits an empty checked value; otherwise, it must be present in code list ID 12.

Where the rule applies

The rule applies to ram:ID of the legal organization within the buyer party.

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