Activities getting executing twice

SnowUserDev
Tera Contributor

Hey Community,

 

I have a weird issue going on in workflow. Activities are being executed twice. I am not sure y. Any inputs or guidance on this will be helpful

1 ACCEPTED SOLUTION

@SnowUserDev ,

 

Oh thats ok. Thanks for responding.

If there is a branch activity being used can u also confirm if there is a join used in that workflow which joins both the outputs?

 

So what can be happening is if u use a branch in ur flow n don't join both the outputs to a join then this thing tends to happen as branch will run parallel y n execute whatever activities are present in its way. So if u don't use a join activity n simply join both the outputs lets say to a task activity or approval activity or any activity it will execute it twice because it does not understands that it should now stop running activities in parallel. In order to do this join activity is required. 

 

You can find a join activity under core tab in workflow.

 

Thanks,

Danish

 

View solution in original post

7 REPLIES 7

Danish Bhairag2
Tera Sage
Tera Sage

Hi @SnowUserDev ,

 

Are you using branch in ur workflow or are there two outputs coming from one single activity?

Possible to share the snip of workflow that would be helpful

 

Thanks,

Danish

 

Hi @Danish Bhairag2 ,

 

Yes there is one branch activity being used in that workflow.

 

Apologies won't be able to share the snip as I don't have access to that instance. I work along with other developer who has the access.

 

Thanks 

@SnowUserDev ,

 

Oh thats ok. Thanks for responding.

If there is a branch activity being used can u also confirm if there is a join used in that workflow which joins both the outputs?

 

So what can be happening is if u use a branch in ur flow n don't join both the outputs to a join then this thing tends to happen as branch will run parallel y n execute whatever activities are present in its way. So if u don't use a join activity n simply join both the outputs lets say to a task activity or approval activity or any activity it will execute it twice because it does not understands that it should now stop running activities in parallel. In order to do this join activity is required. 

 

You can find a join activity under core tab in workflow.

 

Thanks,

Danish

 

@Danish Bhairag2 ,

 

The explanation does make sense to me. I will ask that developer to check n confirm n if not present to add n check again if it runs twice or not.

 

Thanks for ur help.