产成品核算时报错::违反了 PRIMARY KEY 约束 'PK_CB_EXPALLORESULT...
金蝶云社区-yw115
yw115
0人赞赏了该文章 1,135次浏览 未经作者许可,禁止转载编辑于2018年06月07日 06:39:48

错误信息如下图,要如何处理?

Message:违反了 PRIMARY KEY 约束 'PK_CB_EXPALLORESULTREC'。不能在对象 'dbo.T_CB_EXPALLORESULTREC' 中插入重复键。
语句已终止。;StackTrace: at Kingdee.BOS.App.Data.AbstractDatabase.ExecuteNonQuery(DbCommand command, IEnumerable`1 listParam)
at Kingdee.BOS.App.Data.DBUtils.ExecuteBatchWithTime(Context ctx, List`1 lstSqlObj, Int32 commandTimeout)
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.AllocateExpense.InsertTmpDataToResultTable()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.ExpenseAllocateEngine.TotalExpenseAllocate()
at Kingdee.K3.FIN.App.Core.OutAcctg.AbstractAcctgService.Execution[T](Context ctx, T acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.ExecuteServiceForShedule[T,K](Context ctx, T acctgParameters, CostAcctgServiceObject`1 service)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.ExecutionBatchServiceObject[T,K](Context ctx, T acctgParameters, Dictionary`2 services, CostCalType calType, List`1 checkAttrs, Boolean isLast)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.ExecutionCostCal(CostCalGlobalContext costCalGlobalContext, Context bosctx, Dictionary`2 calservice)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.CostCal(ComputeContext ctx, CostCalGlobalContext costCalGlobalContext)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencilService.CostAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)