No compiled code to run

Hello,

I have an Invode Code activity and it started to give this error, it was working before. Any ideas?

image

1 Like

Hi @Jenni_K !
Would you mind running again your workflow, and once the pop-up error happens, click on Details and copy the details section here ?

RemoteException wrapping System.ArgumentException: No compiled code to run
error CS1704: An assembly with the same simple name 'TelemetryClient, Version=1.1.51.0, Culture=neutral, PublicKeyToken=null has already been imported. Try removing one of the references or sign them to enable side-by-side. At line -15
 
   at UiPath.Activities.System.Utilities.InvokeCode.CompilerRunner.Compile(String code, Int32 errLineOffset, Boolean generateInMemory)
   at UiPath.Activities.System.Utilities.InvokeCode.CompilerRunner..ctor(String code, String className, String methodName, Int32 errLineOffset, Boolean generateInMemory)
   at UiPath.Activities.System.Utilities.InvokeCode.CSharpInvoker.GetCompilerRunner(String code, String className, String methodName, Int32 errLineOffset, Boolean inMemory)
   at UiPath.Activities.System.Utilities.InvokeCode.NetCodeInvoker.GetCompilerRunner(String userCode, List`1 args, String imps, Boolean inMemory)
   at UiPath.Activities.System.Utilities.InvokeCode.NetCodeInvoker.Run(String userCode, List`1 inArgs, IEnumerable`1 imps, Object[] args)
   at UiPath.Core.Activities.InvokeCode.Execute(CodeActivityContext context)
   at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
   at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

Thanks, what is the current version of UiPath Studio that you’re using ?
Did you update UiPath Studio recently so that it could explain why it did work before ?

Studio version is 2020.10.6 Community - Stable

(EDIT sorry i got tangled with several topics with python) did you check the language of the invoke code ?

Yes, it’s Csharp.

Did you check the arguments ? Looks like either the arguments of invoke code or of the workflow have a problem (maybe at the initialization, maybe there are double values named the same way as argument and variable)

image

Ok, go to your files, in a path like C:\Users\...\.nuget\packages and check inside if you see two times a folder that has the name TelemetryClient

Also, would you mind showing us your dependencies (in manage packages), do you have a double times two packages that have similar names or are using similar packages ?

1 Like

image

image

image

image

image

image

Ok now if you open your json file, would you mind showing us the exact dependency used (on telemetry):

image

Do you have the same nupkg when you click on Manage Packages ?