存货核算反结账报错
金蝶云社区-战歌德
战歌德
0人赞赏了该文章 1,332次浏览 未经作者许可,禁止转载编辑于2018年04月12日 09:10:47


[tr][td]版本:6.2.802.8
电话:15065586857
qq:1287813078

存货核算反结账报错如下:请老师帮忙,十分着急,万分感谢
异步任务执行失败System.AggregateException: 发生一个或多个错误。 ---> Kingdee.BOS.KDExceptionDatabase: 不能在具有唯一索引“IDX_HS_INIVBALANCEUQ”的对象“dbo.T_HS_INIVBALANCE”中插入重复键的行。重复键值为 (271004, 100080, 1)。语句已终止。 ---> System.Data.SqlClient.SqlException: 不能在具有唯一索引“IDX_HS_INIVBALANCEUQ”的对象“dbo.T_HS_INIVBALANCE”中插入重复键的行。重复键值为 (271004, 100080, 1)。语句已终止。 在 System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction) 在 System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) 在 System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) 在 System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString) 在 System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, SqlDataReader ds) 在 System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean asyncWrite) 在 System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(TaskCompletionSource`1 completion, String methodName, Boolean sendToPipe, Int32 timeout, Boolean asyncWrite) 在 System.Data.SqlClient.SqlCommand.ExecuteNonQuery() 在 Kingdee.BOS.App.Data.AbstractDatabase.ExecuteNonQuery(DbCommand command, IEnumerable`1 listParam) --- 内部异常堆栈跟踪的结尾 --- 在 Kingdee.K3.FIN.App.Core.CommonFunction.DoCheckOutUnCheckOutAction(Context ctx, CheckOutParameters para, CheckOutUnCheckOutAction action, CheckOutItem item, Boolean withTransAction) 在 Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.TransBackFromHistory(Context ctx, CheckOutParameters para) 在 Kingdee.K3.FIN.HS.App.Core.CheckOutSerice.CheckOutUnCheckOut(Context ctx, CheckOutParameters jsonParameters, IOperationResult operationResult)