Summary
In certain situations, when migrating documents with multiple pages to a different volume, you may receive the following error message:
9008 (error executing SQL command)
In the Windows Event Viewer, you will see an error message similar to the following example:
Database statement execution error encountered. Session ID: 14; Dialog ID: 573; Repository: 'MyRepository'; CLI routine: SysEntryMigrate; Message: [Microsoft][SQL Native Client][SQL Server]Violation of UNIQUE KEY constraint 'doc_tocid_storeid_unq'. Cannot insert duplicate key in object 'dbo.doc'.; SQL Statement: 'update doc set storeid = ? where tocid = ? and page_id = ? '; SQL variable: ''; SQL State: 23000.
Resolution 1
This issue is resolved in Laserfiche 8.1 and later. Please upgrade to the latest version of Laserfiche.
Resolution 2
There is a hotfix available for Laserfiche Server 8.0.2. The fix includes the following files:
To update Laserfiche Server 8.0.2