Kill process throws aggregate exception

I recently upgraded to version 2019.10.3. The kill process that’s included in the framework now throws an error everytime it fires. It actually does kill the process but then the error is thrown. Anyone else experience this?

19.10.3+Branch.support-v2019.10.Sha.95df6905e4f3e6898cb391d1e7a7af2314bc8023

Source: Kill Process

Message: Encountered errors while trying to kill a process

Exception Type: System.AggregateException

RemoteException wrapping System.AggregateException: Encountered errors while trying to kill a process —> RemoteException wrapping System.ComponentModel.Win32Exception: Access is denied
at System.Diagnostics.ProcessManager.OpenProcess(Int32 processId, Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
at System.Diagnostics.Process.Kill()
at UiPath.Core.Activities.KillProcess.Execute(CodeActivityContext context)
— End of inner exception stack trace —
at UiPath.Core.Activities.KillProcess.Execute(CodeActivityContext context)
at System.Activities.CodeActivity.InternalExecute(ActivityInstance instance, ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.ActivityInstance.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
at System.Activities.Runtime.ActivityExecutor.ExecuteActivityWorkItem.ExecuteBody(ActivityExecutor executor, BookmarkManager bookmarkManager, Location resultLocation)

@Will_Tyler

Set ContinueOnError field to True in properties of Kill Process activity and then check it.

@Will_Tyler,

Take a Start Process .
image


Mukesh

Hi
Hope this could add you more insights

Cheers @Will_Tyler

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.