Stop Process if any Program used Stop Responding

Hello everybody!

I’m preparing an automation for which Ill be using Excel, Mozilla and Chrome.

Is there any way to make the automation stop if any of these programs present a problem or stop running (Not Responding status).

I want the program to stop any time this happens.

Let me know.

Thank you all !!! :smiley:

1 Like


The best practice in my opinion is to catch the Exception that occurs when it happens, then close the applications and either retry the section of the process or enter a closure sequence to end process.

I mean surround your workflow with a Try/Catch, so when something like that happens you can store the exception to a variable, then close applications, then either retry for a certain number of times or Throw the exception that was received with the Throw activity.

1 Like

Not 100% sure of how to Use a Try/Catch but I will follow your suggestion, I’m just new to this software.

Take a look at the ReFramework model. While it’s missing some important components and is not very streamlined in my opinion, it can give you an idea on how you can take advantage of State Machines, Invokes, and Try/Catches to perform a robust process flow.

If you don’t like State Machines, you can perform the same model using a flowchart also.




If you can periodically check the Browser Response Status within your code, you could probably do something like this. you might need further validations if your robot is working in a high density environmen (multiple login) not to kill other user’s browsers.

if(Process.GetProcessesByName("chrome")(0).Responding = True)
   Kill Process -- Activity

Thank you sir ! Appreciate it. Ive been reading about Try/Catch

I just have 1 possible error right now that could happen on the Workflow,

1- Excel stops responding when copy on clipboard.

Thank you sir. Ill read it for sure

Thank you sir, Ill also try that, I just need to be sure that if Excel stops working, I would kill the process and open it again. I guess that would work.

Sorry, I’m a rookie as you may notice :smiley: