Summary
When you use the Laserfiche Repository Upgrade Utility to upgrade a 7.1.x repository for use with Laserfiche 7.1.2, you may receive the following error message:
There is already an index on table 'Doc' named 'IX_Doc_TocId'.
Cause
This error occurs when you are upgrading a repository that has been hotfixed using the SQL script hotfix described in the following Knowledge Base article:
1001049 Laserfiche is Unexpectedly Slow When Accessing Large Volumes.
The SQL script hotfix described in the Knowledge Base article creates the IX_Doc_TocId index. When upgrading a repository to Laserfiche 7.1.2, the Laserfiche Repository Upgrade Utility will also attempts to create this index. Because the index already exists, the process will fail. This issue may affect you in one of two ways:
If the repository upgrade process failed with the described error message, there is a SQL script created specifically for this issue that will successfully complete the failed 7.1.x to 7.1.2 upgrade.
Note: The following procedure only successfully completes a failed 7.1.x to 7.1.2 upgrade if the process failed with the error message, "There is already an index on table 'Doc' named 'IX_Doc_TocId'." It does not complete migrations that may have failed for any other reason.
To complete a failed 7.1.x to 7.1.2 upgrade
cmd
osql -E -S ServerName -d "DatabaseName" -i "ScriptPath"
where ServerName is the name of your SQL server, DatabaseName is the name of the SQL database associated with the Laserfiche repository you are upgrading, and ScriptPath is the full path (including the file name and extension) to the extracted 712UpdateIndexHotfixFix.sql file.Note: If you are using MSDE, this procedure only needs to be completed on the main SQL database; it is not necessary on expansion databases.
If you have not yet run the 7.1.x to 7.1.2 upgrade process, you can prevent this issue from occurring by using an updated version of the MS711-712.sql upgrade script used by the Laserfiche Repository Upgrade Utility. This updated version will check for the presence of the index before attempting to create it. Replace the existing MS711-712.sql script with the updated MS711-712.sql script (last modified on November 17, 2005).
Note: This file must be replaced before beginning the repository upgrade process. If you previously attempted the repository upgrade process and received the given error message, please see Resolution 1
To replace MS711-712.sql with the updated version