产品成本核算出现以下错误,要怎么处理?
金蝶云社区-Tomy_chen
Tomy_chen
0人赞赏了该文章 341次浏览 未经作者许可,禁止转载编辑于2019年07月16日 11:03:23
Message:违反了 PRIMARY KEY 约束 'PK_CB_COSTALLOPROSENDEXP'。不能在对象 'dbo.T_CB_COSTALLOPROSENDEXP' 中插入重复键。
语句已终止。;StackTrace: at Kingdee.BOS.App.Data.Sql.SqlDatabase.ExecuteBatch(List`1 sqlArray, Int32 batchSize, Int32 commandTimeout)
at Kingdee.BOS.App.Data.DBUtils.ExecuteBatchWithTime(Context ctx, List`1 sqlArray, Int32 batchSize, Int32 commandTimeout)
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.AllocateCost.InsertTmpDataToProcessTable()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.AllocateCost.ExpenseAllocate()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.ExpenseAllocateEngine.TotalExpenseAllocate()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.ExpenseAllocateEngine.ExpenseAllocate()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.ExpenseAllocateService.ExpenseAllocate(Context ctx, CostCalParameters parameters)
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)

您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!

请选择打赏金币数 *

10金币20金币30金币40金币50金币60金币
可用金币: 0