【已解决】出库成本核算报错
715次浏览
编辑于2016年05月03日 13:26:03
存货核算提示如下错误:
违反了 PRIMARY KEY 约束 'PK_HS_EXPENSES'。不能在对象 'dbo.T_HS_EXPENSES' 中插入重复键。
语句已终止。 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.HS.App.Core.OutStockAcctg.Object.StockBillData.UpdatePreStockCost(Context ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.HS.App.Core.OutStcokCostAcctg.BeforeOutStockAcctg(Context ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AbstractAcctgService.BeforeExecution[T](Context ctx, T acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.BeforeExecuteServiceForShedule[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.OutStockAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencilService.CostAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)
推荐阅读