Workflow runscript is cancelled

Geet Burande
Tera Contributor

Hi all,

In the below image run script is becoming cancelled and workflow is end. In the run script, scripting also working fine that I was checked in background script. Can anyone please let me know reason for cancelling run script.

 

workflow error.png

 

Thanks in advance!

 

1 ACCEPTED SOLUTION

Hi @Geet Burande ,

 

If my response helped you could you please mark the response as "Solution Accepted", so that it can benefit other users who visit this post.

 

Thanks,

Danish

View solution in original post

5 REPLIES 5

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Geet Burande ,

 

by any possibility are you using branch activity is workflow or from anywhere in workflow u have created two outputs which results in branch? 

 

Thanks,

Danish

Hi Danish,

Yes I am using branch activity and created two outputs.

Thanks,

Geet

Hi @Geet Burande ,

 

ok are you using the join activity because in the current snip which u have provided i cannot see it. So basically if u using branch in servicenow to create more than 1 parallel paths u need to use join as well at the end so that the parallel paths can be joined into 1 else for eg if u have created to outputs or parallel paths from a branch then what happens is 2 separate set of activities starts executing as per the logic. Now if any 1 path gets completed early n another path lets say is stuck somewhere for approval or task completion then the flow will get completed if u have not used join activity thus cancelling the other path.

 

So please use join activity to connect those parallel paths which has been created from branch. Join activity will wait for all the paths to get completed & then only it will move forward. Thus will not cancel any running activity.

 

Thanks,

Danish

Hi @Geet Burande ,

 

If my response helped you could you please mark the response as "Solution Accepted", so that it can benefit other users who visit this post.

 

Thanks,

Danish