由于客户的要求,在A数据中心的单据审核时保存到B数据中心,如果A数据中心的单据是直接新增的,审核时保存到B数据中心没问题,如果A数据中心的单据是通过转换规则关联生成的,那么保存到B数据中心时报错,因为B数据中心没有上游单据,
发生时间:15:38:50
错误来源: Kingdee.BOS.ServiceHelper
错误信息:给定关键字不在字典中。
===================================================
调用堆栈:
Server stack trace:
在 System.Collections.Generic.Dictionary`2.get_Item(TKey key)
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveLogic.AbstractReserveLinkService.CreateBillInfoMap(List`1 lstBillInfo, Entity entityInfo, FormMetadata metaInfo)
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveLogic.AbstractReserveLinkService.GetBatchConvertInfo(List`1 lstConvetDetailInfo, Dictionary`2 targetBillMap)
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveLogic.AbstractReserveLinkService.AnalysisRouteToConvertRow()
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveLogic.AbstractReserveLinkService.InitProperty()
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveLogic.ReserveLinkConvertPoxy.Do()
在 Kingdee.BOS.App.Core.BusinessFlow.ReserveOpationFactory.CallReserveOpation()
在 Kingdee.BOS.App.Core.BusinessFlow.BusinessFlowWriteBack.DoWriteBack(Sheets`1 sheets, AED`1 aed)
在 Kingdee.BOS.App.Core.BusinessFlow.BusinessFlowTracker`1.WriteDataToDB(BusinessFlowInstanceCollection newInstances, BusinessFlowTrackerCollection trackerRows, Sheets`1 sheets, Sheets`1 snapshot, AED`1 aed)
在 Kingdee.BOS.App.Core.BusinessFlow.BusinessFlowTracker`1.Save(Sheets`1 sheets)
在 Kingdee.BOS.App.Core.BusinessFlow.BusinessFlowTrackerApply.Save(DynamicObject[] dataObjects, String operationNumber)
在 Kingdee.BOS.App.Core.Save.SaveConvertData(DynamicObject[] dataObject)
在 Kingdee.BOS.App.Core.Save.ExecuteOperatinTransaction(DynamicObject[] objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperation(DynamicObject[]& objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperatinTransaction(DynamicObject[] objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
在 Kingdee.BOS.App.Core.AbstractOprerationService.Excute(DynamicObject[] dataEntities)
在 Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)
Exception rethrown at [0]:
在 JiDongShiYou.ServiceHelper.AuditOrSaveBill(String BillMetadataName, String EntryMetadataName, String BillOrgFieldName, EndOperationTransactionArgs e, Context context, Boolean isCustomer, Boolean isSupplier, Boolean isAudit) 位置 f:\学习资料\360yun\文档\Solutions\吉东石油\JiDongShiYou\JiDongShiYou\Service\ServiceHelper.cs:行号 459
在 JiDongShiYou.ServiceHelper.AuditBill(String BillMetadataName, String EntryMetadataName, String BillOrgFieldName, EndOperationTransactionArgs e, Context context, Boolean isCustomer, Boolean isSupplier) 位置 f:\学习资料\360yun\文档\Solutions\吉东石油\JiDongShiYou\JiDongShiYou\Service\ServiceHelper.cs:行号 473
在 JiDongShiYou.InStockAudit.EndOperationTransaction(EndOperationTransactionArgs e) 位置 f:\学习资料\360yun\文档\Solutions\吉东石油\JiDongShiYou\JiDongShiYou\Service\InStockAudit.cs:行号 54
在 Kingdee.BOS.App.Core.PlugInProxy.OperationServicePlugInProxy.FireEndOperationTransaction(EndOperationTransactionArgs e)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperation(DynamicObject[]& objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.CallOperatinTransaction(DynamicObject[] objs)
在 Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
在 Kingdee.BOS.App.Core.AbstractOprerationService.Excute(Object[] ids)
在 Kingdee.BOS.App.Core.SetStatusService.SetBillStatus(Context ctx, BusinessInfo businessInfo, List`1 pkEntryIds, List`1 paras, String operationNumber, OperateOption option)
Exception rethrown at [1]:
在 Kingdee.BOS.ServiceHelper.BusinessDataServiceHelper.SetBillStatus(Context ctx, BusinessInfo businessInfo, List`1 pkEntryIds, List`1 paras, String operationNumber, OperateOption option)
在 Kingdee.BOS.Business.Bill.Operation.AbstractStatusConvert.ExecuteStatusConvert(List`1 paras)
在 Kingdee.BOS.Business.Bill.Operation.Audit.AuditIdeaPrompt()
在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Operation(CallBackWfAfterOperation callbackwf, IOperationResult result)
在 Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormOperation.Execute(InvokeFormOperation4WfParam param, CallBackWfAfterOperation callbackwf)
在 Kingdee.BOS.Web.DynamicForm.OperationCaller.InvokeFormOperation(String operationNumber)
在 Kingdee.BOS.Business.DynamicForm.BusinessService.ExcuteOperation.DoAction(FormBusinessServiceArgs e)
在 Kingdee.BOS.Core.DynamicForm.FormBusinessServiceUtil.InvokeServices(IDynamicFormView view, Object source, IEnumerable`1 services, Int32 actionType, String activeEntity, DynamicObject activeRow, Int32 rowIndex)
在 Kingdee.BOS.Web.DynamicForm.BusinessServiceCaller.InvokeFormBusiness(IDynamicFormView view, Object source, List`1 formBusinessServices, Int32 actionType, String entityKey, Int32 row)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormView.BarItemClick(String parentKey, String barItemKey, BarDataManager bar, Int32 bartype)
在 Kingdee.BOS.Web.List.ListView.MainBarItemClick(String barItemKey)
在 Kingdee.BOS.Web.DynamicForm.DynamicWebFormController.MainBarItemClick(String itemKey, JSONArray postDatas)
错误数据: System.Collections.ListDictionaryInternal
推荐阅读