GoExcel.CurrentRowValue Throwing an Error on just 1/1000 variable.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I have a rule written that is using an excel sheet to update parameters for the different components. In that rule, there are approximately a thousand local parameters and every single one of them is updating except the last one. (I have checked the syntax, spelling and whatnot).
Now, here's the mind-numbing part, if you save and close inventor and open it again it works without an error but after a few configurations through ilogic it re-appears. Heres, the code and error:
Excel :
Error:
System.Runtime.InteropServices.COMException (0x80004005): Unspecified error (0x80004005 (E_FAIL))
at System.RuntimeType.InvokeMember(String name, BindingFlags bindingFlags, Binder binder, Object target, Object[] providedArgs, ParameterModifier[] modifiers, CultureInfo culture, String[] namedParams)
at System.RuntimeType.ForwardCallToInvokeMember(String memberName, BindingFlags flags, Object target, Object[] aArgs, Boolean[] aArgsIsByRef, Int32[] aArgsWrapperTypes, Type[] aArgsTypes, Type retType)
at Inventor.Parameter.set_Expression(String )
at iLogic.ParamDynamicFinder.SetParamValueInner(Parameter param, Object value, Boolean doUpdate)
at iLogic.ParamDynamicFinder.SetParamValue(Parameter param, Object value, Boolean doUpdate)
at iLogic.ParamDynamic.set_Item(Object compoOrDocName, String paramName, Object value)
at ThisRule.Main() in rule: UPDATE, in document HDC.iam:line 144
at iLogic.RuleEvalContainer.ExecRuleEval(String execRule)