Good afternoon Support,
I've recently reinstalled Adaxes on one of our nodes to update to the 2015.1 version. Upon bringing services online the node is no longer able to write to the database because of the following error.
I can't say that I am very good with MS SQL but have your team seen these issues before?
Adaxes service 'ADAXES02.contoso.com' cannot save log records to the external database.
Error Details: Softerra.Adaxes.Logging.ExternalDatabaseException (0x80072035): Violation of PRIMARY KEY constraint 'PKOperations'. Cannot insert duplicate key in object 'dbo.Operations'. The duplicate key value is (0375804f-6879-4f0d-a8ad-3d605f691d31).
The statement has been terminated.
Database: Adaxes (ADAXESDB.contoso.com)
Username: CONTOSO\svc.Adaxes ---> System.Data.SqlClient.SqlException: Violation of PRIMARY KEY constraint 'PKOperations'. Cannot insert duplicate key in object 'dbo.Operations'. The duplicate key value is (0375804f-6879-4f0d-a8ad-3d605f691d31).
The statement has been terminated.
at System.Data.SqlClient.SqlConnection.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.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.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
at #Tk.#Kl.ExecuteNonQuery(String query, IList1 parameters, IDbCommand command) at #Tk.#Ll.ExecuteNonQuery(String query, IList
1 parameters)
at #Tk.#Ll.ExecuteNonQuery(String query, IList`1 parameters)
at #tl.#yl.InsertRecord(ISqlQueryExecutor queryExecutor, AdmLogRecord record, Guid initiatorId, Guid targetObjectId)
at Softerra.Adaxes.Logging.DBAccessProvider.InsertRecord(ISqlQueryExecutor queryExecutor, AdmLogRecord record)
at #Tk.#il.#i.#jl.#9ub()
at #Tk.#il.#i.#jl.#8ub()