I am receiving the following error when I try to run my workflow
My workflow was running smoothly until I suddenly started getting this error, and I can’t figure out where it is originating from. I checked the studio logs and saw it mentioned an invalid L-value expression relating to one of my variables. I had not used this variable in the workflow, and I determined it was not needed, so I deleted it. However, when I run the workflow, I am still getting the same error referencing that deleted variable.
Any help is greatly appreciated. Thanks!
From the Studio Logs:
[ERROR] [UiPath.Studio.exe] [1] System.InvalidOperationException: GetExpressionTree failed to get an expression tree because the VisualBasic expression text or the LocationReferenceEnvironment visible to it has been altered since it was cached. The compile error message is : Compiler error(s) encountered processing expression “RIC_Fund”.Invalid L-value expression.:Reference expressions cannot end with Conversion. The provided expression’s type must exactly match the type T of VisualBasicReference or LambdaReference…
at Microsoft.VisualBasic.Activities.VisualBasicReference1.GetExpressionTree() at UiPath.Studio.Plugin.Workflow.WorkflowHandling.DesignerWrapper.VariableExists(ITextExpression expression, Variable variableToLookFor) in D:\a\1\s\Studio\UiPath.Studio.Plugin.Workflow\WorkflowHandling\DesignerWrapper.cs:line 2008, HResult -2146233079 12:12:45.1747 => [ERROR] [UiPath.Studio.exe] [1] System.InvalidOperationException: GetExpressionTree failed to get an expression tree because the VisualBasic expression text or the LocationReferenceEnvironment visible to it has been altered since it was cached. The compile error message is : Compiler error(s) encountered processing expression "RIC_Fund".Invalid L-value expression.:Reference expressions cannot end with Conversion. The provided expression's type must exactly match the type T of VisualBasicReference<T> or LambdaReference<T>.. at Microsoft.VisualBasic.Activities.VisualBasicReference
1.GetExpressionTree()
1 post - 1 participant