I am using UiPath Studio version 2024.10.10 and client is using unattended bot.
Couple of days ago, when I ran a one process for the work. It worked fine. But, now the same process is giving me an error. It always happens at invoke work flow activity. Every parameters are set correctly. It gives me
“RemoteException wrapping System.Reflection.TargetInvocationException: Exception has been thrown by the target of invocation —> RemoteException wrapping System.IO.FileNotFoundException: Could not load file or assembly ‘ProcessName.MyProcess.processName, Version=5.0.18.0, Culture=neutral, PublicKeyToken=null’. Cannot find the file. …”
Do you know the issue? I tried erasing .local folder in the project folder. I tried making different workflow, but it is giving me similar error from the invoke workflow
Make sure you are invoking the workflow which is part of your project and not outside of your project folder as the xamls outside of your project folder won’t be packaged into your budget package and will lead to this error.
It’s inside project folder’s folder. The problem is even invoking workflow for "Take Screenshot is giving me an error. Same error Could not load file or assembly. … at Source: System.Private.CoreLib At Source: System.Private.CoreLib. and it’s not working and giving me the same error
the studio version 2024.10.10. I can’t share the packages in here. It’s a client’s company. but the invoke work flow for dependency package which is UiPath.System.Activities is 24.10.7
Rebuild and republish the process with a new version, delete .local / bin / obj folders, clear Robot .nuget and UiPath cache, restart Robot service, and ensure the job runs the latest package. Recreate Invoke Workflow if needed.
It could be a bug. Try creating new sample process and test if the error persists. You can also delete invoke workfow activity and add it again and test it.
Usually re-deploying should solve this issue. Give it a try and let us know .
Doing the simple test as suggested by @Anil_G would be my first ask as well. @kdlee Could you please confirm if that dummy, “empty project” scenario works?
it works if I create a dummy invoke work flow activity with write line activity. But when I use the activities inside that previous one(it had for each folder activity), which was not working. It gives me an error. I don’t understand though. It was perfectly working that activity couple of days ago. and I didn’t really change anything from that on
invoke work flow works with some activities. But it is always giving me in certain invoke workflow activities. Right now at “Framework\InitAllApplications.xaml” invoke workflow which only has a log message inside, is giving me similar error “RemoteException wrapping System.IO.FileNotFoundException: Could not load file or assembly ‘ProcessName.Framework_InitAllApplications, Culture=neutral, PublicKeyToken=null’. File cannot be found. …”