cancel
Showing results for 
Search instead for 
Did you mean: 

Kill Process

BrianneGacad
Level 3
Hello All, I'm having a very weird issue wherein i do have a stage using "Utility - Environment, Kill Process" with parameter "iexplore" for process name. It's part of my exception handling wherein i kill all existing IE processes first before trying to relaunch the website and try working on the item again. It doesn't kill any process nor does it close the IE browser. Logs show it went to that action but for some reason it does not do anything and just relaunches IE. I then am left with a lot of IE browsers open and a never ending loop of it relaunching. I never experienced any of these when i was running on production laptops, but when we migrated it over to a server platform a lot of errors i never encountered just popped up and not to mention it is running extremely slow!! Any help and guidance is much appreciated Thanks! Brianne
11 REPLIES 11

PaulCurran1
Level 4
Hi, I have a similar problem. I have a process with an .exe that BP recognises as 'Exists' but 'Kill Process' has no effect so will result in an infinite loop if not handled. Even when stepping through the action it has no effect so I don't believe its anything to do with a delay as I can wait for hours and the application remains active. I've been trying to work around the issue by terminating the program but this causes a scenario where multiple instances are being held of another program which then causes the process to fail to launch. Any ideas? Paul.

aaron.diaz
Staff
Staff

Hello Brianne,

I just had a similar case with this working on a client platform. As already mentioned by others the code here in the Utility is meant to close out all instances found of a program name given. So for example with iexplore it would then close out every instance you have of Internet Explorer. However this code is not compatible to when there are multiple users left logged into a machine. For your case any anyone else seeing this would recommend double checking in task manager how many users are logged in. Here is an example of one user: 

aarondiaz_0-1731962282612.png


If you have a case where it shows other users for example but are disconnected this will cause the code to attempt but be unable to close the application due to not being able to make sure it is on the current user only it will then accept the kill command and then move on which would result in the performance, you have reported. Let us know if this resolves the issue for you or if you have only one user on the machine and still have the issue. Would be good to get a screen shot of the user's tab like I showed here 🙂