Workflow activities are getting executed twice

SnowUserDev
Tera Contributor

Hey Community,

 

I am facing a weird issue in my workflow. Whenever the flow is triggered the activities after an if flow gets executed twice as I could see updates happening twice on the record.

 

Can u help me or guide me what is happening over here?

 

Thanks

1 ACCEPTED SOLUTION

Danish Bhairag2
Tera Sage
Tera Sage

Hi @SnowUserDev ,

 

Could u please check in ur flow if by any chance there is a branch activity used or from ur if activity there are two outputs which are going from same node to next activities.

 

If yes again ,then u need to end that branch with a join activity from core.

 

If u don't use join n directly attach the both outputs to a single activity the activities will be executed twice.

 

Thanks,

Danish

 

View solution in original post

4 REPLIES 4

Danish Bhairag2
Tera Sage
Tera Sage

Hi @SnowUserDev ,

 

Could u please check in ur flow if by any chance there is a branch activity used or from ur if activity there are two outputs which are going from same node to next activities.

 

If yes again ,then u need to end that branch with a join activity from core.

 

If u don't use join n directly attach the both outputs to a single activity the activities will be executed twice.

 

Thanks,

Danish

 

Hi @Danish Bhairag2 ,

 

It was exactly as u said, there are two outputs which are coming from if activity.

 

Thanks again for all ur help

Hello @Danish Bhairag2 : i am facing issue where the workflow in my workflow is executing twice , in my case there are approvals , how to use join activity(i never used join activity in workflow), is there any code written in this join activity or just the join activity to add here so the workflow doesnt get called twice(it is getting cancelled), Thanks!

Hi @servicenow14710 ,

 

Could u share a snip of your workflow please which can help me understand where its going wrong.

Also in join activity we are not supposed to write anything.

 

Thanks,

Danish