产品成本核算时,合法性检查中的成本核算过程中出错,错误提示如下,请问是什么原因呢?怎么处理?
违反了 PRIMARY KEY 约束 'PK_CB_COSTALLOPROSENDEXP'。不能在对象 'dbo.T_CB_COSTALLOPROSENDEXP' 中插入重复键。
违反了 PRIMARY KEY 约束 'PK_CB_COSTALLOPRORECEXP'。不能在对象 'dbo.T_CB_COSTALLOPRORECEXP' 中插入重复键。
语句已终止。
语句已终止。 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.ExpenseAllocate()
at Kingdee.K3.FIN.CB.App.Core.ExpenseAllocate.ExpenseAllocateEngine.ExpenseAllocate()
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(CostCalParameters acctgParameters, Context bosctx, Dictionary`2 checkservices, Dictionary`2 calservice)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.CostCal(ComputeContext ctx, CostCalParameters acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencilService.CostAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)
推荐阅读