Article ID: 927226 - Last Review: February 18, 2011 - Revision: 4.1
Error message when you try to upgrade from one version of Microsoft Dynamics CRM to another: "The following indexes are not consistent with Microsoft Dynamics CRM <version> indexes"
System TipThis article applies to a different operating system than the one you are using. Article content that may not be relevant to you is disabled.
Notice
This article may contain a link to the Windows Installer Cleanup utility (MSICUU2.exe). If you were directed to this article to solve a problem by using the Windows Installer Cleanup utility, please contact your software manufacturer for installation support on the product, or see the following Microsoft Knowledge Base article for steps to troubleshoot uninstallation issues with products that use Windows Installer:
When you try to upgrade from one version of Microsoft Dynamics CRM to another, you may receive error messages, depending on the version of Microsoft Dynamics CRM from which you are upgrading.
Upgrading from Microsoft Dynamics CRM 3.0 to
Microsoft Dynamics CRM 4.0
When you try to upgrade from Microsoft Dynamics CRM 3.0 to Microsoft Dynamics CRM 4.0, you receive the following error message in the Environmental Diagnostic Wizard (EDW):
The following indexes are not consistent with Microsoft Dynamics CRM 3.0 indexes
If you open the Crm40svrsetup.log file, you may notice one or more of the following error messages.
Error message 1
Time| Info| The following indexes are not consistent with Microsoft Dynamics CRM 3.0 indexes:
Time|Warning| remark: added index
Time|Warning| tablename: contactbase Time|Warning| indexname: _dta_index_contactbase_7_693577509__k7_k91_k42_k45_k47_1
Time|Warning| The indexes on the Microsoft Dynamics CRM database are not consistent with Microsoft Dynamics CRM 3.0 indexes.
Error message 2
Action Microsoft.Crm.Setup.InstallDatabaseAction failed. Exception has been thrown by the target of an invocation. Access is denied to "C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData", or the path is invalid.
Error message 3
Error| System.Exception: Action Microsoft.Crm.Setup.Server.InstallDatabaseAction failed. ---> System.Data.SqlClient.SqlException: Cannot alter or drop column 'KeyWords' because it is enabled for Full-Text Search.
The Crm40svrsetup.log file records the installation log that is
generated by the Microsoft Dynamics CRM installation. The Crm40svrsetup.log file is
located in the following folder:
C:\Documents and
Settings\user\Application
Data\Microsoft\Mscrm\Logs
Note In this path, user represents the user who is upgrading the program.
If you continue with the upgrade to Microsoft Dynamics CRM 4.0, the upgrade does not work. Additionally, you receive the following error message:
Time| Error| System.Exception: Action Microsoft.Crm.Setup.Server.InstallDatabaseAction failed. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Data.SqlClient.SqlException: The index '_dta_index_OrganizationUIBase_7_626101271__K5_K9_1_2_6_10_11_12' is dependent on column 'InProduction'.
The statistics '_dta_stat_626101271_2_6' is dependent on column 'InProduction'.
ALTER TABLE ALTER COLUMN InProduction failed because one or more objects access this column.
If you click Retry, the upgrade does not continue. Additionally, you receive the following error message:
Action Microsoft.Crm.Setup.Server.InstallDatabaseAction failed. ---> System.Data.SqlClient.SqlException: There is already an object named 'AttributeTypes' in the database.
Upgrading from Microsoft CRM 1.2 to
Microsoft Dynamics CRM 3.0
When you try to upgrade from Microsoft CRM 1.2 to
Microsoft Dynamics CRM 3.0, you receive the following error message in the Environmental Diagnostic Wizard (EDW):
The following indexes are not consistent with Microsoft Dynamics CRM 1.2 indexes
In you open the Crm30svrsetup.log file, you may notice one or more of the following error messages:
Error message 1
Microsoft CRM Database
The full-text indexes on the Database are not consistent with Microsoft
CRM 1.2 full-text indexes.
Error message 2
Time|
Info| The following full-text indexes are not consistent with Microsoft CRM 1.2
full-text indexes: Time| Info| tableowner: dbo Time| Info|
tablename: documentindex Time| Info| fulltextkeyindexname:
pk_documentindex Time|Warning| remark: modified full-text index
The Crm30svrsetup.log file records the installation log that is
generated by the Microsoft Dynamics CRM installation. The Crm30svrsetup.log file is
located in the following folder:
C:\Documents and
Settings\user\Application
Data\Microsoft\Mscrm\Logs
Note In this path, user represents the user who is upgrading the program.
Upgrading from Microsoft Dynamics CRM 3.0 to
Microsoft Dynamics CRM 4.0
To resolve this problem, follow these steps if you receive an error message in the EDW:
Exit the EDW.
Drop the custom indexes from the Microsoft Dynamics CRM 3.0 database. The custom indexes are listed in the Crm40svrsetup.log file.
Note For more information about how to drop the custom indexes, view the related topic in SQL Server Books Online.
Upgrade to Microsoft Dynamics CRM 4.0.
Note You should not receive an error message in the EDW.
Add the custom indexes to the Microsoft Dynamics CRM 4.0 database.
If you ignore the error message in the EDW and then receive the "InstallDatabaseAction failed" error message during the upgrade to Microsoft Dynamics CRM 4.0, follow these steps:
Restore the system back to Microsoft Dynamics CRM 3.0. Make sure that the restoration includes the Microsoft Dynamics CRM databases.
Drop the custom indexes from the Microsoft Dynamics CRM 3.0 databases. The custom indexes are listed in the Crm40svrsetup.log file.
Note For more information about how to drop the custom indexes, view the related topic in SQL Server Books Online.
Upgrade to Microsoft Dynamics CRM 4.0.
Note You should not receive an error message in the EDW.
Add the custom indexes to the Microsoft Dynamics CRM 4.0 database.
If the problem remains, you must reconfigure full-text indexing. To do this, follow these steps:
Step 1: Restore the system back to Microsoft Dynamics CRM 3.0
Uninstall Microsoft Dynamics CRM 4.0. To do this, follow these steps:
Click Start, point to Control Panel, and then click Add or Remove Programs.
Click Microsoft Dynamics CRM Server, and then click Remove.
Make sure that the Microsoft Dynamics CRM files are removed, if the files still exist then delete the files. These are normally found under <drive:>\Program Files\Microsoft Dynamics CRM.
Delete the Microsoft Dynamics CRM 4.0 databases that are created by the upgrade process. To do this, follow these steps:
Open Microsoft SQL Server Management Studio.
Expand Databases.
Right-click Organization_Name_MSCRM, and then click Delete.
Right-click MSCRM_CONFIG, and then click Delete.
Restore the following Microsoft Dynamics CRM 3.0 databases.
Note You backed up these databases before you upgraded to Microsoft Dynamics CRM 4.0.
Organization_Name_MSCRM
Organizaton_Name_Metabase
If you do not have the product key in another location, obtain the product key from the license table. To do this, run the following query in SQL Server Management Studio against the Organization_Name_MSCRM database:
Select licensekey from license
Reinstall Microsoft Dynamics CRM 3.0 by using the Connect to existing databases option. To do this, follow these steps:
Run the Microsoft Dynamics CRM 3.0 Setup program.
When you are prompted to enter a product key, enter the product key that you obtained in step 5.
Click Add, and then click Next.
Enter the name of the server that is running SQL Server, and then click Connect to existing databases.
Complete the installation.
Step 2: Enable full-text indexing
Open SQL Server Management Studio, expand Databases, expand the Organization_Name_MSCRM database, expand Storage, and then expand Full Text Catalogs.
Verify that there is no full-text catalog that is named ftcat_documentindex.
Right-click Full Text Catalogs, and then click New Full-Text Catalog.
In the Full-Text catalog name field, type ftcat_documentindex.
In the Catalog location list, select drive:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\FTData.
In the Filegroup list, make sure that Default appears, and then click OK.
Right-click the ftcat_documentindex full-text catalog that you created in steps 3 through 5, and then click Properties.
Click Tables/Views.
In the All eligible table/view objects in this database section, click to select dbo.documentindex, and then click the arrow to move the selected item to the Table/view objects assigned to the catalog section.
In the Available Columns list, click to select the following check boxes:
KeyWords
SearchText
Title
In the Language for Word Breakers list, click to select the check box for the correct language word
breaker.
Click OK.
Run the following query in SQL Server Management Studio against the Organization_Name_MSCRM database:
EXEC sp_fulltext_database 'enable'
GO
Right-click the Organization_Name_MSCRM database, and then click Properties.
Click Files, and then verify that the Use full-text indexing option is selected.