cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Regular Visitor

Multiple flows concurrently adding/updating rows in excel sharepoint

Hi, 

 

I have a use-case of multiple flows inserting / updating rows of a table excel. 

It seems like this creates issues of concurrent updating of the xlsx (causing duplicates).

 

Is there any way to make the updates atomic?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @ngchumin,

 

If a file is checking out, other flows that try to check out will fail.

You could add Do until action into the Flow, do a loop until the file check-in:

outputs('Check_out_file')['statusCode']

Screenshot 2020-12-10 180737.jpg

 

Configure run after setting of Delay action:

Screenshot 2020-12-10 180752.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support
Community Support

Hi @ngchumin,

 

You could consider using the Check Out file and Check In file actions to prevent others from editing the document, and your changes from being visible until the documented is checked in.

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-litu-msft , 

 

Just a quick clarification, if I have multiple flows wanting to do checkout, is it the case that only one would succeed and the rest would block? Subsequently, after the file gets checked-in, then the other flows waiting to check out would proceed and try to acquire the check-out on the file... and so on ....

 

Regards, 

Chu-Ming

Community Support
Community Support

Hi @ngchumin,

 

If a file is checking out, other flows that try to check out will fail.

You could add Do until action into the Flow, do a loop until the file check-in:

outputs('Check_out_file')['statusCode']

Screenshot 2020-12-10 180737.jpg

 

Configure run after setting of Delay action:

Screenshot 2020-12-10 180752.jpg

 

Best Regards,
Community Support Team _ Lin Tu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (72,330)