I have always assumed that a process should not stop if it is in try catch and in infinite loop. Process looks like this:
TRY connect to access db insert a line of data to table (using query activity) update that line of data (using non query activity) delay 10 sec
CATCH on system exception do nothing
And also it designed to loop itself.
After an hour or so, an exception is thrown and the process is stopped:
Yes, It was coming when I was trying to open the access db connection more than once. So, I created a custom code to fix that and it worked fine for me
Under Project > Dependencies
2 Right Click on Excel.Activities
3 . Click on Manage
4 Select the package “UiPath.Excel.Activities”
5 . On right Pane, click on update
This must fix the error.
I selected the latest package 2.8.6 ( not the preview)
I also face this error ocassionally. It seems to be a generic error code related to many different causes. Once it was caused from a string object I was passing getting too large due to a bad loop, other times it has been due to the application going offline. I am automating a web-based app and occasionally if the internet connection drops or is interrupted or the server has some issue, the application will hang. Then, after about 30 seconds of the app being unresponsive, this error appears.
The problem is that this exception is not caught by Try/Catch. When this happens, the solution is to close the app and re-launch it - an operation which should be handled by my reFramework implementation. However, any time this error occurs, it is not caught and the process stops dead. How do I make this exception get caught? It’s a fairly common failure point of my automation which the reframework should address, but is failing to work correctly.
I agree with @AaronTank. The exception (0xC0000005) overrides the try catch sequence in UiPath Studio and leads to irratic process stoppages.
Some of the answers in this thread and elsewhere was to change the version of the excel activities. But this is not the solution. We have tried all possible (from latest versions upto 2.7.2) excel versions as dependencies but the error still persists.
@loginerror could you help elevate this issue? I see many developers have faced / may face the same issue. Summary of this exception
Changing the excel activity dependency version does not fix this issue
This exception is classified as System.Exception but the catch (System Exception) sequence does not catch this error, which is not the excepted behavior un UiPath Studio.
The activity at which this fails was also given the property of “Continue on Failure”. Still the error pops up and the entire process stops.
Killing excel process before this error occurs does not help either
Error Details:
Message: Job stopped with an unexpected exit code: 0xC0000005
Exception Type: System.Exception
RemoteException wrapping System.Exception: Job stopped with an unexpected exit code: 0xC0000005
Hello @Manoj_Batra Can you share your reusable with me as I have this error working with db. Probably it will be of help to myself and my team. Thanks in Advance.