采购价目表引入覆盖报错
金蝶云社区-Jim
Jim
0人赞赏了该文章 479次浏览 未经作者许可,禁止转载编辑于2017年11月17日 13:47:45

引入-批量保存操作 : Invalid cast from 'Decimal' to 'DateTime'.

Server stack trace:
at System.Decimal.System.IConvertible.ToDateTime(IFormatProvider provider)
at Kingdee.K3.SCM.App.Pur.ServicePlugIn.PriceList.ExistsSaveValidator.<>c__DisplayClass4.b__0(DynamicObject p)
at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext()
at System.Linq.Enumerable.d__3a`1.MoveNext()
at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
at Kingdee.K3.SCM.App.Pur.ServicePlugIn.PriceList.ExistsSaveValidator.CheckPriceListEntryDataIsAlreadyExistInStepForNotGX(DataTable dt, ValidateContext validateContext, ExtendedDataEntity dataObj, Int64 purOrgId, String priceType, Int64 currencyId, Int64 supplierId, DynamicObjectCollection priceListEntrys, Int32 startIndex, Int32 endIndex)
at Kingdee.K3.SCM.App.Pur.ServicePlugIn.PriceList.ExistsSaveValidator.CheckPriceListEntryDataIsAlreadyExistForNotGX(ExtendedDataEntity[] dataEntities, ValidateContext validateContext)
at Kingdee.K3.SCM.App.Pur.ServicePlugIn.PriceList.ExistsSaveValidator.Validate(ExtendedDataEntity[] dataEntities, ValidateContext validateContext, Context ctx)
at Kingdee.BOS.App.Core.Validation.ValidationService.Validate(IEnumerable`1 dataEntities, ValidateContext validateContext, AbstractValidator[] validators)
at Kingdee.BOS.App.Core.Validation.ValidationService.TryValidate(IEnumerable`1 dataEntities, ValidateContext validateContext, List`1& errorInfo)
at Kingdee.BOS.App.Core.AbstractOprerationService.TryValidate()
at Kingdee.BOS.App.Core.AbstractOprerationService.Validate()
at Kingdee.BOS.App.Core.AbstractSave.Validate()
at Kingdee.BOS.App.Core.AbstractOprerationService.DoExcete()
at Kingdee.BOS.App.Core.AbstractOprerationService.Excute(DynamicObject[] dataEntities)
at Kingdee.BOS.App.Core.SaveService.Save(Context ctx, BusinessInfo info, DynamicObject[] dataEntities, OperateOption option, String operationNumber)

Exception rethrown at [0]:
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportEngine.DoSaveBillData(Dictionary`2 relateRows, DynamicObject[] objs, List`1 lstDy, Boolean isTempStor, Boolean isImportGroup, OperateOption option, List`1 failRelateRows, IOperationResult allResult)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportEngine.ImportData(Context ctx, IDynamicFormView view, FormMetadata formMetadata, InputOutputParameter importParameter, DataSet& failDataSet, List`1 matchfields)