Allowed identification-scheme code for the buyer’s 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

If @schemeID contains a value, that value must occur in the code list checked for it. An empty value also satisfies the shown test.

What the rule means

The attribute identifies the identification scheme of the buyer’s organization. The rule restricts any supplied scheme code to values in the referenced code list.

Please use an allowed scheme code for the buyer’s organization

The value of @schemeID on ram:ID is not in the code list checked by this rule. This rule also accepts an empty attribute value.

What to do
  1. Check @schemeID on ram:ID in the buyer’s ram:SpecifiedLegalOrganization.
  2. Use only a value from the allowed code list for the attribute, or leave it without a value.
  3. Regenerate the invoice and validate it again.
Technical details

The XPath passes when $codeValue12 is empty or occurs as an enumeration value in the code list with identifier 12.

Where the rule applies

The rule applies to the @schemeID attribute of ram:ID in the buyer’s ram:SpecifiedLegalOrganization.

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]