JIT Compalation Error

JIT compilation is disabled for non-Legacy projects. ExpressionToCompile { Code = "C:\RPA\Data_Transpose _SSC_Integration\Output File\PAY_MASTERS_LTTSFNF.txt”, ImportedNamespaces = System.Collections.Generic.HashSet1[System.String], VariableTypeGetter = System.Func3[System.String,System.StringComparison,System.Type], LambdaReturnType = System.String } should have been compiled by the Studio Compiler.

at UiPath.Executor.DisabledJustInTimeCompiler.CompileExpression(ExpressionToCompile compilerRequest)
at System.Activities.JitCompilerHelper1.Compile[T](LocationReferenceEnvironment environment, Boolean isLocationReference) at System.Activities.JitCompilerHelper1.Compile[T](CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationReference)
at Microsoft.VisualBasic.Activities.VisualBasicHelper.Compile[T](String expressionText, CodeActivityPublicEnvironmentAccessor publicAccessor, Boolean isLocationExpression)
at Microsoft.VisualBasic.Activities.VisualBasicValue1.CacheMetadata(CodeActivityMetadata metadata) at System.Activities.CodeActivity1.OnInternalCacheMetadataExceptResult(Boolean createEmptyBindings)
at System.Activities.Activity1.OnInternalCacheMetadata(Boolean createEmptyBindings) at System.Activities.Activity.InternalCacheMetadata(Boolean createEmptyBindings, IList1& validationErrors)
at System.Activities.ActivityUtilities.ProcessActivity(ChildActivity childActivity, ChildActivity& nextActivity, Stack1& activitiesRemaining, ActivityCallStack parentChain, IList1& validationErrors, ProcessActivityTreeOptions options, ProcessActivityCallback callback)
at System.Activities.ActivityUtilities.ProcessActivityTreeCore(ChildActivity currentActivity, ActivityCallStack parentChain, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors) at System.Activities.ActivityUtilities.CacheRootMetadata(Activity activity, LocationReferenceEnvironment hostEnvironment, ProcessActivityTreeOptions options, ProcessActivityCallback callback, IList1& validationErrors)
at System.Activities.Hosting.WorkflowInstance.ValidateWorkflow(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.Hosting.WorkflowInstance.RegisterExtensionManager(WorkflowInstanceExtensionManager extensionManager)
at System.Activities.WorkflowApplication.EnsureInitialized()
at System.Activities.WorkflowApplication.Enqueue(InstanceOperation operation, Boolean push)
at System.Activities.WorkflowApplication.SimpleOperationAsyncResult.Run(TimeSpan timeout)
at System.Activities.WorkflowApplication.BeginRun(AsyncCallback callback, Object state)
at UiPath.Executor.InProcessRunner.<>c__DisplayClass7_0.g__StartWorkflow|1()
at UiPath.Executor.InProcessRunner.BeginExecute(AsyncCallback callback, Object state)
at UiPath.Core.Activities.ExecutorInvokeActivity.BeginExecute(AsyncCodeActivityContext context, AsyncCallback callback, Object state)
at System.Activities.AsyncCodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

@Rohan_Ashok_Gonabal This details got from Internet, pls check it help you know your error

The error message you’re encountering indicates that UiPath Studio is unable to compile an expression due to disabled JIT compilation in your non-legacy project. Here’s a breakdown of the error and potential solutions:

Error Breakdown:

  • JIT Compilation Disabled: This is the core issue. In your non-legacy project (likely created in UiPath Studio versions after 20.10.x), JIT compilation is no longer available by default.
  • Expression Compilation: The error message highlights an expression that needs to be compiled (“ExpressionToCompile”). This could be a custom expression or code snippet used within your workflow.
  • Studio Compiler Failure: Due to disabled JIT compilation, the Studio compiler is unable to process the expression.

Solutions:

  1. Review Expression Usage:

    • Analyze the expression causing the error (“C:\RPA\Data_Transpose _SSC_Integration\Output File\PAY_MASTERS_LTTSFNF.txt”).
    • Consider if this expression can be simplified or replaced with alternative approaches that don’t require compilation.
  2. Separate Class Library (if applicable):

    • If the expression is part of a custom activity, explore creating it as a separate class library (.dll file).
    • These libraries can be referenced in your non-legacy project and might leverage JIT compilation if necessary.

Additional Notes:

  • While JIT compilation is disabled, UiPath Studio now uses Ahead-of-Time (AOT) compilation by default for non-legacy projects. This offers better security and performance but doesn’t support all scenarios that might have relied on JIT compilation.
  • The provided error stack trace details the workflow execution process and the point of failure. You can use this information for debugging purposes, but the main focus should be on resolving the expression compilation issue.

By following these steps, you should be able to address the JIT compilation error and continue working on your UiPath project. If you need further assistance, consider consulting UiPath documentation or reaching out to their support team.