Log Name: Symantec Enterprise Vault
Source: Accelerator Service Processor
Event ID: 285
Task Category: None
Level: Error
Description: APP AT - Customer ID: X - An Error has occured while bulk inserting search items. System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'dbo.tblSearchItems' with unique index 'IX_UNQ_CaseIDSearchIDKVSSavesetID'. The duplicate key value is (AA, BB, ).
ERROR_usp_SearchItem_Bulk_Add
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
at System.Data.SqlClient.SqlDataReader.ConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteScalar()
at KVS.Accelerator.Common.TraceDLCommand.ExecuteScalar(IDbCommand command, Boolean RetryDLs)
at KVS.Accelerator.Common.TraceDLCommand.ExecuteScalar(IDbCommand command)
at KVS.Accelerator.Search.SearchItems.InsertBulkSearchItem(SearchResults results)
V-437-285
Log Name: Symantec Enterprise Vault
Source: Accelerator Service Processor
Event ID: 296
Task Category: None
Level: Error
Keywords: Classic
Description:
APP AT - Customer ID: X - Error processing bulk search items: Unrecoverable error bulk inserting search items. System.Data.SqlClient.SqlException: Cannot insert duplicate key row in object 'dbo.tblSearchItems' with unique index 'IX_UNQ_CaseIDSearchIDKVSSavesetID'. The duplicate key value is (AA, BB, ).
ERROR_usp_SearchItem_Bulk_Add
The statement has been terminated.
at KVS.Accelerator.Search.SearchItems.InsertBulkSearchItem(SearchResults results)
at KVS.Accelerator.Search.SearchQueues.SearchResultsProcessWork(ThreadSafeQueue& theQueue, Object queuedItem)
V-437-296
This issue can occur if either of the following conditions exist:
Each set of Event ID 285 / Event ID 296 entries will indicate the CaseID, the SearchID, and the KVSSavesetID for the item causing the duplicate entry. Reviewing the "The duplicate key value is" lines in the error examples above, AA is the CaseID and BB is the SearchID. The examples above do not contain a KVSSavesetID, which should follow the SearchID, as this entry is missing and is causing the errors to be thrown.
To stop the Event ID 285 / Event ID 296 entries:
To prevent this issue from recurring, the EVAMS must be Stopped during any SQL maintenance activities targeting any of the DA Databases: Configuration, Customer and Custodian (if present).