Stop Button Not Working

Hi. After starting a flow in StudioX, nothing happens when I click the red Stop Button. In order to stop the process, I have to either close the app that the flow is working in (ex. chrome) or open Task Manager in Windows 10 Pro and kill the UIPath Executor Process (green icon) or close the window the process is running in (ex. chrome) to cause the process to fail. I tried changing over to the advanced Studio profile and was able to click Stop with no issues. So I then tried resetting the whole Studio app to to default settings, then switched back to StudioX profile and tried again, but no luck. Any ideas? Thanks in advance!

1 Like

Hey @jon4378

Have you tried full re-install by clearing up all studio installation files.

Thanks
#nK

You have to use the Should Stop activity to check if a stop command is detected. Then in your code you determine what happens if it’s true vs false. This is so the Stop command will gracefully stop your job, rather than stopping it immediately while it’s in the middle of something.

Here is an example:

After this sequence is a Flow Decision that sends it to an End Process sequence if shouldStop is true, or continues back to Get Transaction if it’s false.

Thank you for this, but if I may ask, what is the goal of this exercise? I’m just new to UIPath so your instructions are still going over my head, as detailed as you were in describing them. I had Studio installed on another machine and, the Stop Button worked fine. Hmmm…

Not only a clean install, but I even created a brand new user account to install it under. Hmmm.

1 Like

Hey @jon4378

Could you please check if there is something left in the task scheduler ?

What i understood is you already tried installing the machine but with different user ?

Thanks
#nK

Thank you NK. Yes, I deleted the previous windows user account (which was dedicated to UIPath) and created a brand new windows account, to ensure the cleanest re-install. I am still having the same issue with StudioX, but not with the advanced Studio profile, where the stop button does work. I’m assuming your question about scheduled tasks is related to the windows task scheduler? If so, below is a screen shot of the UIPath tasks that are listed. Even if it were related to a scheduled task, it would still be strange that the problem only existed in StudioX and not in Studio. No?

Thanks again for your help! This is very frustrating. :frowning:

Screen Shot 2022-04-24 at 8.51.13 AM

1 Like

Hey @jon4378

Could you please show some screenshots on how it is behaving ?

Thanks
#nK

I didn’t realize you are talking about when running it in Studio. I thought you were referring to issuing a stop command for attended (ie Assistant) or unattended (ie Orchestrator) jobs.

Hello, thank you for your find we are working on a solution for this issue :slight_smile: We will inform when we will have a fix for this :slight_smile:

Regards,
Dragos.

I am also having this issue, when I run a script in StudioX I am unable to stop the process, the only way to stop it is to quit the entire program. Please can you update me on the solution/fix