Kill Process Encountered Errors While Trying To Kill A Process

Kill Process Activity gives errors while trying to kill a process.

Error: Kill Process: Encountered errors while trying to kill a process.

Some of the key troubleshooting steps are as below.

  1. Log into the machine where this error is encountered. Launch the application as human user, which the Kill Process Activity is trying to kill. Check for the name of the process in Task manager and verify if it matches with the name used in Kill Process Activity.
  2. In some cases, Robot might try to kill a process, which may not be open. In such cases, enabling Continue on error property of Kill Process activity can help.
  3. In order to debug the issue, add a try catch block for the Kill Process Activities and catch the error.

  1. Check KillAllProcesses.xaml, InitAllApplications.xaml and CloseAllApplications of ReFramework default xaml files. Also check for other workflows where Kill process activity is used.