SVC
January 17, 2024, 5:09pm
1
Using a Stop Job activity in a work flow to stop the Job if an error occurs.
I am able to print the Process Name from the List to be stopped but the Stop Job activity is not working.
Under Tenant > gave the Robot role below permissions.
the Robot role needs to also have the Create and Edit rights on jobs, as well as View permissions on processes and environments.
And the same user account is assigned for job execution
Also referred below thread ,
Hi Aishwarya,
First you have to use Get Jobs Activity to Get all jobs from Orchestrator. It will return an IEnumerable.
After that you can traverse through it so that it will get Orchestrator jobs and then you can use as Input for Stop Job Activity.
Also, the Robot role needs to have the create and edit rights on jobs, as well as view permissions on processes and environments.
I hope this helps.
SVC
January 17, 2024, 7:02pm
3
The Job is not stopping right after the activity but running till the end of the process.
postwick
(Paul Ostwick)
January 17, 2024, 7:12pm
4
If you want to stop the currently running Job, you use the Terminate activity. Stop Job is for stopping a different job - not the one that’s running.
SVC
January 17, 2024, 7:22pm
5
Thanks for the clarification!
Already tested “Terminate workflow” activity. And it is working. Just wanted to know why the Stop Job isn’t working on the current running process.
postwick
(Paul Ostwick)
January 17, 2024, 7:30pm
6
Because that’s not what it’s for. It’s for stopping other jobs.
Does your process have a Should Stop activity? If you’re stopping (and not killing) the job, the stop signal is checked for only when the Should Stop is reached.
pikorpa
(Piotr Kołakowski)
January 17, 2024, 8:48pm
8
@SVC
To stop process you must use this activity:
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
As suggested by others, try to use terminate workflow activity,
Regarding “stop Job” . please go through the below link -
The UiPath Documentation Portal - the home of all our valuable information. Find here everything you need to guide you in your automation journey in the UiPath ecosystem, from complex installation guides to quick tutorials, to practical business...
SVC
March 12, 2024, 1:30am
10
“Terminate workflow” activity will work to terminate the workflow. “Stop Job” activity is not working on the current workflow.
system
(system)
Closed
March 15, 2024, 1:30am
11
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.