Invalid scheme for the tax registration identifier

Error FX-SCH-A-000770 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 applicable code list.

What the rule means

The attribute identifies the scheme of the tax registration identifier. A value that is not allowed can affect the unambiguous interpretation of that identifier.

Please use an allowed scheme for the tax registration identifier

The value of @schemeID on ram:ID in the seller tax representative’s tax registration entry is not allowed. Use a value from the corresponding code list.

What to do
  1. Find ram:ID in the seller tax representative’s ram:SpecifiedTaxRegistration.
  2. Compare the value of @schemeID with the allowed values in the corresponding code list.
  3. Generate the invoice again and validate it again.
Technical details

The test allows an empty extracted code value or checks whether it is present in the code list with identifier 35.

Where the rule applies

The rule applies to @schemeID on ram:ID within ram:SpecifiedTaxRegistration of the seller tax representative.

Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeAgreement/ ram:SellerTaxRepresentativeTradeParty/ram:SpecifiedTaxRegistration/ram:ID
Test expression (assert/@test)
string-length($codeValue35)=0 or document('FACTUR-X_EXTENDED_codedb.xml')/codedb/cl[@id=35]/enumeration[@value=$codeValue35]