Issue when flow are executed simultaneously

Najmuddin Mohd
Mega Sage

Hello Community,

I have a scenario, where the flows are executing simultaneously and bringing unexpected behaviour.

Ex: I have count field on a Parent Table. When the Child record is completed, it will check the previous value and increment to one.

If I update it from List view, couple of flows are executed simultaneously, and instead of incrementing to two, they are incrementing to one.

Does changing the Flow from Run Background to Run Foreground solve the issue.
Or Is there way where we can move the flow into dedicated Queue, if there is already a flow running on this table.

or any better solution for this.

Regards,
Najmuddin

1 ACCEPTED SOLUTION

Vishal Jaswal
Giga Sage

Hello @Najmuddin Mohd 

Parent Record Count = 0
Child Record Completed -> Flow Triggered. 
Parent Record Count = 1

"If I update it from List view," then let's say same flow is executed twice and the expectation is Parent Record Count = 3 however it is showing 2.

May I know if the above understanding is correct? 

Here is a sample Flow which updates Parent's Incident Count Field value to 2 if both Child Incidents are resolved simultaneously:

18.jpg
19.jpg20.jpg
Validation results: Parent Incident's Count Field updated twice when both Child Incidents were resolved from list view at the same time:
21.jpg


Hope that helps!

View solution in original post

3 REPLIES 3

Vishal Jaswal
Giga Sage

Hello @Najmuddin Mohd 

Parent Record Count = 0
Child Record Completed -> Flow Triggered. 
Parent Record Count = 1

"If I update it from List view," then let's say same flow is executed twice and the expectation is Parent Record Count = 3 however it is showing 2.

May I know if the above understanding is correct? 

Here is a sample Flow which updates Parent's Incident Count Field value to 2 if both Child Incidents are resolved simultaneously:

18.jpg
19.jpg20.jpg
Validation results: Parent Incident's Count Field updated twice when both Child Incidents were resolved from list view at the same time:
21.jpg


Hope that helps!

Hi @Vishal Jaswal ,

Thanks for your reply.

Here, it takes the Input as Count which was before and  the Number that you add as Incremented.

Let's assume the flow for two records have run simultaneously, then the Input as Count would be fetched same from the Parent record as 1 and incremented as one in both child records, which would result same on the Parent as 2.

This would not result is any issue ?

Regards,
Najmuddin


Hello @Najmuddin Mohd 

If you can share the trigger condition screenshot, then that will help me to reproduce the issue at my end.


Hope that helps!