存货核算反初始化后,重新核算报错

本帖最后由 群峰之巅 于 2019-06-20 编辑

存货核算反初始化之后,结算初始化重新核算,报错:

Message:不能在具有唯一索引 ‘IDX_HS_OUTINSTOCKSEQUQ’ 的对象 ‘dbo.T_HS_OUTINSTOCKSEQ’ 中插入重复键的行。
语句已终止。;StackTrace: at Kingdee.BOS.App.Data.Sql.SqlDatabase.CopyDataToDestination(DbCommand cmd, DataTable table)
at Kingdee.BOS.App.Data.Sql.SqlDatabase.BulkInserts(DbCommand cmd, DataTable dt)
at Kingdee.BOS.App.Data.DBUtils.BulkInserts(Context ctx, String InsertstrSql, String CreateSql, DataTable dt)
at Kingdee.BOS.App.Data.DBUtils.BulkInserts(Context ctx, DataTable dt)
at Kingdee.K3.FIN.HS.App.Core.OutStockAcctg.Object.StockBillData.InsertOutInStockSeq(Context ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.HS.App.Core.OutStcokCostAcctg.GetOutInStockAcctgData(Context ctx, OutStockAcctgParameters acctgParameters)
at Kingdee.K3.FIN.HS.App.Core.OutStcokCostAcctg.GetBillData(Context ctx, OutStockAcctgParameters acctgParameters, AbstractOutStockAcctgPlugInProxy plugInProxy)
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.AcctgBefore[T,K](Context ctx, T acctgParameters, Dictionary`2 services, CostCalType calType)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencil.OutStockAcctg(ComputeContext ctx, CostCalGlobalContext costCalGlobalContext)
at Kingdee.K3.FIN.App.Core.OutAcctg.AcctgStencilService.CostAcctg(ComputeContext ctx, OutStockAcctgParameters acctgParameters)

麻烦总部老师指导一下,在客户现场核算出错,一直处理不了。试过重新反初始化无效。

 

问题名称:存货核算反初始化后,重新核算报错

点击链接查看答案:

https://club.kingdee.com/forum.php?mod=viewthread&tid=1496442

未经允许不得转载:友商问答 » 存货核算反初始化后,重新核算报错

赞 (0)