Hi, for some reason when I throw and error, the bot gets stuck indefinitely after throwing the error, and the try catch won’t execute.
As you can read on the log in this image, my sequence “_ReadPriceHistoryJson” throws a manually defined “Business Rule Error”, and inside it Retrows the error.
After that, UiPath shows the log message for the error inside the “Body” of the “for” activity. And it stucks forever and ever without doing anything else.
Already tried. While googling the error it was a suggestion that I found, but it didn’t help. I’m currently at v22.10.5 for that Package. I was using 23.4.2 when it happened first time.
The screenshot I provided was running on debug mode, you can see it because I’m able to pause the execution on Studio.
That button that allows me to pause the execution shows that the execution is currently running. And the log shows exactly where it is… Which is stucked at the “body” of the “for” activity.
The workflow which throws the error already has a breakpoint. You can also see it on the screenshot. When I execute that workflow and the error occurs and is then rethrowed from within, studio stucks.
As per screenshot the error occured on the next invoke workflow file and the breakpoint is on the previous…from the breakpoint do not continue…instead do step into to check and confirm that it is stuck on catch block or the loop
Here (after is thrown) studio stucks (but does not pause, and it won’t allow me to pause).
I know it’s here because I execute in debug, and when you throw an error in debug, the execution pauses and you can as many “step into” as you want. When the focus of the execution comes here and I press “step into”, studio stucks.
Can you please remove that last for loop and add again…lideally you should see a sequence around…looks like a onetime issue…if you add again then it might work as expected
All sequences are hidden in the new version of Studio for non windows-legacy projects.
With this I mean that adding the “for” again will add a hidden sequence called “body”, as this “for” did.
I see try catch and sequence available when the system package version is 23.4
I believe you degraded to 22.10 and now only for for its not
I agree there is a feature for the same but it looks different here…and it looks like stuck on the for loop and not on rethrow…this action is to just confirm and rule out the issue
After I deactivated the “hide sequences” option, Studio stopped stucking. I just executed it and it worked.
It seems to be a bug related to the hidden sequence.
I’ve looked into your issue and tried to create a project based on the provided screenshots, so that I could get as close as possible to your setup. However, I could not reproduce the error in my setup, with Hide Sequence setting set on both true or false.
Even though the issue was fixed for you by disabling the Hide Sequences setting, it would help us to understand why exactly this issue occurred, so could you, please, provide some further guidance?
Did you get any error message when you force-aborted execution for the debugging sessions that got stuck? If so, could you, please, attach the output of the UiPath Diagnostics tool?
What version of UiPath Studio did you use?
What target-framework and what language did you use in your project?
If the project uses the Windows target-framework, was it migrated from Windows-legacy at some point, by using the migration tool?
Did you use a Pick activity in your project? Asking this because we have a known issue around using the Try Catch activity inside a Pick container that leads to a very similar behavior to the one you were experiencing.
If possible, could you, please, attach the project? I noticed you’ve hidden some details in your screenshots, so I assume the project includes some sensitive data. If so, could you, please, provide a version of the project where you remove the sensitive data?