Seem
(S A)
1
Hey all
I want to kill the processes from my uipath.
there 2 process - SAP and Excel and Access DB.
Note: only those 3 above process…
So i did the following program
In the - For each i have changed the - Typeargument .
Can any one please help me.
Regards,
Sonika
lakshman
(Ganta lakshman)
2
@Seem
Go to Exclamatory mark on Kill Process and show me what is the exact error.
Have you passed process name under “ProcessName” field right ?
Seem
(S A)
3
@lakshman
Yeah i have given - item.ProcessName
But it will kill all the processes.
So how to kill specific processes from the loop?
Regards,
Sonika
lakshman
(Ganta lakshman)
4
@Seem
Because you looped all the process. That’s why it killed all processes.
For this, Take one IF condition inside for loop.
IF item.ProcessName.Tostring.ToLower.Contains(“excel”)
Then use Kill Process activity and specify processName as item.ProcessName
Else skip
It will Excel process only.
1 Like
Hey @Seem
Go through with this existing thread -
This might help you
Regards…!!
Aksh
3 Likes
Hi buddy @Seem
Kindly follow the below steps that could help you resolve this issue
- Inside the for each loop, in kill process, in process property, pass the variable from for each loop Item like this
Where Item is the variable that we get from for each loop which has the collection of processnames…
Simple buddy…you were almost done…
Kindly try this and let know whether this works or not buddy
Cheers @Seem
1 Like
Seem
(S A)
7
Hi All,
Thanks for all your help and quick replies…
I did it in a different way.
Took an array and gave the process names as below, and killed them
It worked for me.
Its easy.
Thank you All,
Regards,
Sonika
2 Likes
system
(system)
Closed
8
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.