计划订单投放报错
金蝶云社区-HongFeng_Fang
HongFeng_Fang
0人赞赏了该文章 2,433次浏览 未经作者许可,禁止转载编辑于2014年05月29日 16:58:59

计划订单投放报错环境:3.0+最新补丁


An item with the same key has already been added.
发生时间:16:49:27
错误来源: mscorlib
错误信息:An item with the same key has already been added.
===================================================
调用堆栈:
at System.Collections.Generic.Dictionary`2.Insert(TKey key, TValue value, Boolean add)
at System.Linq.Enumerable.ToDictionary[TSource,TKey,TElement](IEnumerable`1 source, Func`2 keySelector, Func`2 elementSelector, IEqualityComparer`1 comparer)
at System.Linq.Enumerable.ToDictionary[TSource,TKey](IEnumerable`1 source, Func`2 keySelector)
at Kingdee.K3.MFG.PLN.App.Core.PlanOrder.ReleaseMo.SynaMoToPPBom(DynamicObject ppbomItem, Dictionary`2 dicMoLink)
at Kingdee.K3.MFG.PLN.App.Core.PlanOrder.ReleaseMo.AfterReleaseAction(IEnumerable`1 sucessDataEntity)
at Kingdee.K3.MFG.PLN.App.Core.PlanOrder.AbstractBaseRelease.PlanOrderRelease(Context ctx, IEnumerable`1 releaseItems, ReleaseOption option)
at Kingdee.K3.MFG.PLN.App.Core.ReleaseService.ReleaseSingleType(Context ctx, IEnumerable`1 plItems, Enu_ReleaseType releaseType, ReleaseOption option)
at Kingdee.K3.MFG.PLN.App.Core.ReleaseService.Excute(Context ctx)
at Kingdee.K3.MFG.PLN.App.Core.ReleaseService.Release(Context ctx, IEnumerable`1 plItems, ReleaseOption option)
at Kingdee.K3.MFG.ServiceHelper.PLN.PlanOrderServiceHelper.Release(Context ctx, IEnumerable`1 plItems, ReleaseOption option)
at Kingdee.K3.MFG.PLN.Business.PlugIn.Bill.PlanOrderEdit.BillRelease()
at Kingdee.BOS.Core.DynamicForm.PlugIn.DynamicFormViewPlugInProxy.FireBarItemClick(BarItemClickEventArgs e)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.BarItemClick(String parentKey, String barItemKey, BarDataManager bar, Int32 bartype)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.MainBarItemClick(String barItemKey)
at Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.MainBarItemClick(String itemKey, JSONArray postDatas)
错误数据: System.Collections.ListDictionaryInternal

查询了对应的物料,没有问题
该计划订单有MRP计划运算出来与手工创建在投放的时候报错
但是下查生产订单的时候,可以看到下游的生产订单的状态是创建状态,只要点击投放几次,下游就能看到几张生产订单
但投放后,计划订单的状态仍然是供应确认的状态一个计划订单可以无限量投放


麻烦相关领域的专家看看这个问题