Error while publishing - JIT compilation

I"m getting this error →
System exception at initialization: JIT compilation is disabled for non-Legacy projects. ExpressionToCompile { Code = Not String.IsNullOrWhiteSpace(row(“Name”).ToString.Trim), ImportedNamespaces = System.Collections.Generic.HashSet1[System.String], VariableTypeGetter = System.Func2[System.String,System.Type], LambdaReturnType = System.Boolean } should have been compiled by the Studio Compiler. at Source: UiPath.Executor.Core

Whats wrong with this syntax → Not String.IsNullOrWhiteSpace(row(“Name”).ToString.Trim)

@Sudharsan_Ka @supermanPunch @Anil_G

@pravin_bindage

Try it like this

row(“Name”).ToString.Trim.IsNullOrWhiteSpace

May I know is it failing on any specific activity?

Alternately jit compilation error comes when the system package version is not in line with the studio version…

Try upgrading to latest or downgrade to a differnet version

Cheers

Hi @pravin_bindage ,

Maybe there is an issue with the double quotes try re-writing it to the below :

Not String.IsNullOrWhiteSpace(row("Name").ToString.Trim)

Also Check on the below similar posts :

I reentered syntax Now it throws → Unexpected error has occurred during the library compilation process:
Object reference not set to an instance of an object.
@Anil_G @supermanPunch

@pravin_bindage

Can did you try changing the system packages version?

Cheers

@pravin_bindage ,

This might because of the row("Name") being empty, so maybe a pre-check would work or just remove .Trim at the end and check :

(row("Name") is Nothing) andAlso (Not String.IsNullOrWhiteSpace(row("Name").ToString))

Yes i tried

still same

@pravin_bindage

Is it failing on an activity or is it not running itself?

Cheers

@pravin_bindage

Are you developing using .net or you are using C#?

Regards
Sudharsan

process runs but not able to publish

Error comes while publishing

using .net

@pravin_bindage

Try deleting the project.json and reopen and then try uploading

Cheers

Make sure you made a backup before doing this @pravin_bindage

1 Like

Now i get this one
Could not publish project. Entry point could not be found.

@pravin_bindage

Check if entry point is set or from project panel right click on mail and click set entry point

Cheers


error msg

@pravin_bindage

Disconnect all the connection like orchestrator and GIT and then restart the studio even restart your system and try connecting back all then try again

Regards
Sudharsan