Flowchart: Expression Activity type ‘CSharpValue1' requires compilation in order to run. Please ensure that the workflow has been compiled. System.NotSupportedException: Expression Activity type 'CSharpValue1’ requires compilation in order to run


Hie. I recently migrated from Windows Legacy. When trying to run my robot its now saying
. Flowchart: Expression Activity type ‘CSharpValue1' requires compilation in order to run. Please ensure that the workflow has been compiled. System.NotSupportedException: Expression Activity type 'CSharpValue1’ requires compilation in order to run. Please ensure that the workflow has been compiled. at System.Activities.Expressions.CompiledExpressionInvoker.InvokeExpression(ActivityContext activityContext)
at Microsoft.CSharp.Activities.CSharpValue1.Execute(CodeActivityContext context) at System.Activities.Runtime.ActivityExecutor.ExecuteInResolutionContext[T](ActivityInstance parentInstance, Activity1 expressionActivity)
at System.Activities.Variable`1.PopulateDefault(ActivityExecutor executor, ActivityInstance parentInstance, Location location)
at System.Activities.ActivityInstance.ResolveVariable(Variable variable, ActivityExecutor executor)
at System.Activities.ActivityInstance.ResolveVariables(ActivityExecutor executor)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

@Tapiwa,

Try updating all the packages if the project to latest possible version.

What expression is failing? Debug and observe where it is failing. I think in the expression of Flow Decision.
Make sure the quotes and methods are correct.

For example, the issue may be reproducible with this expression: "Dict["Value1"].toString()"

But it may work fine with "Dict["Value1"].ToString()" (if the project is in C#, the expressions are case sensitive)

Also, try in a Studio 24.10.8 https://download.uipath.com/versions/24.10.8/UiPathStudio.msi