- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 10:02 PM - edited 02-15-2024 10:04 PM
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.
Thanks in advance!
Solved! Go to Solution.
- Labels:
-
ITSM
-
Scripting and Coding
-
Workflow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 09:07 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-15-2024 10:16 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 11:08 PM
Hi Danish,
Yes I am using branch activity and created two outputs.
Thanks,
Geet
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-19-2024 11:36 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-18-2024 09:07 AM
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