BOM导入失败!
金蝶云社区-小篮子
小篮子
0人赞赏了该文章 980次浏览 未经作者许可,禁止转载编辑于2017年11月29日 17:06:01

老师好!
我们这边导入物料清单,报以下错误,请分析下是什么问题。

单据头(FBillHead)中,序号为271578的行,引入时遇到未知错误:Message:Attempted to divide by zero.;StackTrace: at System.Decimal.FCallDivide(Decimal& d1, Decimal& d2)
at CallSite.Target(Closure , CallSite , Object , Object )
at System.Dynamic.UpdateDelegates.UpdateAndExecute2[T0,T1,TRet](CallSite site, T0 arg0, T1 arg1)
at Microsoft.Scripting.Interpreter.DynamicInstruction`3.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.Interpreter.Run(InterpretedFrame frame)
at Microsoft.Scripting.Interpreter.LightLambda.Run2[T0,T1,TRet](T0 arg0, T1 arg1)
at IronPython.Compiler.PythonScriptCode.RunWorker(CodeContext ctx)
at IronPython.Compiler.PythonScriptCode.EvalWrapper(CodeContext ctx)
at IronPython.Compiler.RuntimeScriptCode.InvokeTarget(Scope scope)
at Kingdee.BOS.Scripting.PyExpressionEvaluator.Run(Expression expression, ExpressionContext context)
at Kingdee.BOS.Core.Metadata.Util.ConditionParser.VerifyExpression(BOSExpression expression, DynamicRowModel dynamicRow, FunctionManage funcLib)
at Kingdee.BOS.Core.DependencyRules.EntityRule.Execute(BOSActionExecuteContext context)
at Kingdee.BOS.Core.DependencyRules.RuleContainer`6.Execute(C executeContext, TaskCollection tasks)
at Kingdee.BOS.Core.DependencyRules.RuleContainer`6.Resume(C executeContext)
at Kingdee.BOS.Core.DependencyRules.RuleContainer`6.Raise(S arg, C executeContext)
at Kingdee.BOS.Core.DependencyRules.BOSRuleContainer.RaiseDataChanged(String fieldKey, Object dataEntity, BOSActionExecuteContext executeContext)
at Kingdee.BOS.Web.DynamicForm.DataBinder.FieldDataChanged(ModelDataChangedEventArgs e)
at Kingdee.BOS.Core.DynamicForm.ModelDataChangedHandle.Invoke(Object sender, ModelDataChangedEventArgs e)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.UpdateField(Field field, DynamicObject activeRow, Object value, Int32 rowIndex, Object oldValue)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.SetValue(Field field, DynamicObject activeRow, Object value, Int32 rowIndex)
at Kingdee.BOS.Core.DynamicForm.AbstractDefaultValueCalculator.ApplyFieldValue(Field field, DynamicObject rowDataEntity, DefaultValue defValue, Boolean checkNull)
at Kingdee.BOS.Core.DynamicForm.AbstractDefaultValueCalculator.ApplyFieldDefaultValue(DynamicObject rowDataEntity, Boolean inCopy, Field field)
at Kingdee.BOS.Core.DynamicForm.AbstractDefaultValueCalculator.ApplyDefaultValue(Entity entity, DynamicObject rowDataEntity, Int32 row, String InOpertion)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.ApplyDefaultValue(Entity entity, Int32 row, DynamicObject rowDataEntity, String inOperation)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.InnerCreateNewEntryRow(DynamicObject parentRow, Entity entity, Int32 row, DynamicObject rowDataEntity, Int32 rowCount, Boolean bApplyDefaultValue)
at Kingdee.BOS.Core.DynamicForm.AbstractDynamicFormModel.CreateNewEntryRow(Entity entity, Int32 row, DynamicObject rowDataEntity)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportController.CreateEntityRows(Entity entity, List`1 existRows, Boolean addNew)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.DynamicObjectBuilder.FillEntityRowDataWithChild(Boolean addNew, Entity entity, RelateRowData relateRow, Int32 rowIndexInParent, Boolean IsImportGroup, IOperationResult& result)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.DynamicObjectBuilder.FillBillData(Boolean addNew, RelateRowData relateRow, Boolean IsImportGroup, IOperationResult& result)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.DynamicObjectBuilder.BuildDynamicObject(RelateRowData relateRow, DynamicObject oldObj, IOperationResult& result, Boolean IsImportGroup)
at Kingdee.BOS.Business.DynamicForm.PlugIn.Import.ImportEngine.ImportData(Context ctx, IDynamicFormView view, FormMetadata formMetadata, InputOutputParameter importParameter, DataSet& failDataSet, List`1 matchfields)