As reported in the Dynamics forum, there are known issues with upgrading CRM On Premises to CRM 2016 SP1 if you have full-text indexing enabled. You will get the following error:
System.Data.SqlClient.SqlException: Cannot drop index ‘cndx_PrimaryKey_OpportunityProduct’ because it enforces the full-text key for table or indexed view ‘OpportunityProductBase’.
Various posts include SQL scripts to remove the full text index from your CRM database. While these work, they are risky and not supported by Microsoft.
So how do you remove the full text index in a supported way?
- Go to Settings > Administration > System Settings >General tab.
- Select No next to Enable full-text search for Quick Find. Uncheck any entities that you previously selected to use full text indexing for Quick Find.
- Wait 24 hours. This is to allow the indexing service to drop the full text index.
- After 24 hours you should be able to successfully upgrade to SP1.
After upgrading, you can re-enable full-text Quick Find.