急急急!!!存货核算反结账报错
578次浏览
编辑于2017年05月24日 11:32:32
6。0最新补丁
存货核算反结账报错
异步任务执行失败System.AggregateException: One or more errors occurred. ---> Kingdee.BOS.KDExceptionDatabase: 违反了 PRIMARY KEY 约束 'PK_HS_EXPENSES'。不能在对象 'dbo.T_HS_EXPENSES' 中插入重复键。
语句已终止。 ---> System.Data.SqlClient.SqlException: 违反了 PRIMARY KEY 约束 'PK_HS_EXPENSES'。不能在对象 'dbo.T_HS_EXPENSES' 中插入重复键。
语句已终止。
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 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteNonQuery(DbCommand command, IEnumerable`1 listParam)
--- End of inner exception stack trace ---
at Kingdee.K3.FIN.App.Core.CommonFunction.DoCheckOutUnCheckOutAction(Context ctx, CheckOutParameters para, CheckOutUnCheckOutAction action, CheckOutItem item, Boolean withTransAction)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.TransBackFromHistory(Context ctx, CheckOutParameters para)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.CheckOutUnCheckOut(Context ctx, CheckOutParameters jsonParameters, IOperationResult operationResult)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.Start(Context ctx, CheckOutParameters jsonParameters, Boolean checkMinStock)
at Kingdee.K3.FIN.HS.ServiceHelper.CheckOutSericeHelper.Start(Context ctx, CheckOutParameters jsonParameters, Boolean checkMinStock)
at Kingdee.K3.FIN.HS.Business.PlugIn.CheckOutUNCheckOutEdit.Start()
at System.Threading.Tasks.Task.Execute()
存货核算反结账报错
异步任务执行失败System.AggregateException: One or more errors occurred. ---> Kingdee.BOS.KDExceptionDatabase: 违反了 PRIMARY KEY 约束 'PK_HS_EXPENSES'。不能在对象 'dbo.T_HS_EXPENSES' 中插入重复键。
语句已终止。 ---> System.Data.SqlClient.SqlException: 违反了 PRIMARY KEY 约束 'PK_HS_EXPENSES'。不能在对象 'dbo.T_HS_EXPENSES' 中插入重复键。
语句已终止。
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 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteNonQuery(DbCommand command, IEnumerable`1 listParam)
--- End of inner exception stack trace ---
at Kingdee.K3.FIN.App.Core.CommonFunction.DoCheckOutUnCheckOutAction(Context ctx, CheckOutParameters para, CheckOutUnCheckOutAction action, CheckOutItem item, Boolean withTransAction)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.TransBackFromHistory(Context ctx, CheckOutParameters para)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.CheckOutUnCheckOut(Context ctx, CheckOutParameters jsonParameters, IOperationResult operationResult)
at Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.Start(Context ctx, CheckOutParameters jsonParameters, Boolean checkMinStock)
at Kingdee.K3.FIN.HS.ServiceHelper.CheckOutSericeHelper.Start(Context ctx, CheckOutParameters jsonParameters, Boolean checkMinStock)
at Kingdee.K3.FIN.HS.Business.PlugIn.CheckOutUNCheckOutEdit.Start()
at System.Threading.Tasks.Task.Execute()