That particular userid submitted an order successfully, payment was processed, but the order is in Shipment Pending mode. This isn't an anonymous user, although the order was begun as an anonymous user who then created an account on checkout. I've seen the Anonymous User Naintenance tech bulletin (http://help.ablecommerce.com/upgrades/a ... enance.htm) and looked at the "Fix User Constraints" section, but this doesn't seem to fit the mold - the initial install was 7.0.4, not 7.0.0. Other orders are successful and don't generate error log Maintenance entries every day like this one does. This is the only order that contains a shippable product since the upgrade to Gold, however. Any clues or things I should look at?Severity: Error
Message: Error in user maintenance; could not delete user id 118030
Exception: could not execute native bulk manipulation query:DELETE FROM ac_Users WHERE UserId = :userId[SQL: DELETE FROM ac_Users WHERE UserId = @p0]
Stack Trace: at NHibernate.Engine.Query.NativeSQLQueryPlan.PerformExecuteUpdate(QueryParameters queryParameters, ISessionImplementor session)
at NHibernate.Impl.SessionImpl.ExecuteNativeUpdate(NativeSQLQuerySpecification nativeQuerySpecification, QueryParameters queryParameters)
at NHibernate.Impl.SqlQueryImpl.ExecuteUpdate()
at CommerceBuilder.Services.MaintenanceWorker.a(IList`1 A_0)
Inner Exception: The DELETE statement conflicted with the REFERENCE constraint "ac_Users_ac_Orders_FK1". The conflict occurred in database "MYDATABASE", table "dbo.ac_Orders", column 'UserId'.
The statement has been terminated.
Inner Exception Stack Trace: at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning()
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 NHibernate.AdoNet.AbstractBatcher.ExecuteNonQuery(IDbCommand cmd)
at NHibernate.Engine.Query.NativeSQLQueryPlan.PerformExecuteUpdate(QueryParameters queryParameters, ISessionImplementor session)
System Specs:
AbleCommerce Server:
Windows 2008 Standard, SP2 64 bit
ASP.NET 4.0
IIS 7.0 (7.0.6000.16386)
AbleCommerce Gold (build 5410)
Database Server
Windows Server 2008 R2 Standard, SP1 64 bit
MS SQL Server 2008 R2 Standard Version 10.50.2550.0
Database Compatability level 100 (SQL Server 2008)
Database was restored from a SQL 2000 backup and compatibility level was set from 80 to 100 in August 2012. No AbleCommerce errors occured at the then AC version 7.0.4.
Thanks,
HaggisMan