i have recently encountered a problem quite often (though not all the time) - “encountered errors while trying to kill a process”
Background info:
we have several robots running on our server. sometimes the robots encounter error while trying to kill SAP process but not always. The whole process stops because it runs into error in the “Init” state. I could not think of any possible explanations. Anyone else has an idea why?
Hi,
In the Kill process activity enable the “Continue on Error” option, that will resolve this issue. Or check for the processes in the current session and then kill those alone. Don’t kill all the processes from all session.
Okay, while trying to kill a Java app also I encountered similar difficulties.
Try ‘Close application’ with generous delay and timeOutMS and then wrap it with a try catch, and in Catch kill that exact process (get processes and if that process exist use kill process) with ContinueOnError property as true
If you are still not able to end/close that app then use a powershell/CMD prompt to end/stop the service and try again the above process. This should work because it has never failed me though.
Check this out. This may solve your issue. Maybe you Kill process is trying to kill a process which would be open by another user and you current user does not have the rights to kill that particular process.
Althought, the “ContinueOnError” check on the Kill Process activity would also solve your issue as well.