cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
PrashantN
New Member

Issue with copying multiple files using Power automate

I have a requirement to copy modified files from SharePoint to shared network path. When I execute this using Power automate in a loop, first file content is being used for other files and leading to wrong file creation.

 

I have tried to add delay in loop and reset file identifier string but still same issue is observed. Fileidentifier is getting passed correctly when we check on the run history. 

This behavior is inconsistent, sometime it works fine.

 

Please let me know how to handle this issue. Thanks in advance

 

LogicLogic

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PrashantN
New Member

This issue is resolved after disabling concurrency Control in Apply to each action

View solution in original post

3 REPLIES 3
Johnnyg
Community Support
Community Support

Hello PrashantN,

Do you mean the file identifier is correct while you still get wrong file content with this identifier under operation 'Get file content'? Did it mix up for all files or only the first file as you mentioned in you description 'first file content is being used for other files and leading to wrong file creation'?

I believe one remote session with Microsoft Support Team would be highly recommended to help check all Json output for your file identifier and content. 

Best Regards,
Johnny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Johnnyg, As per my analysis, eg if there are 5 files in loop, first file content is being used for other files, sometime it mixes up content on other files, this is very inconsistent behavior, even though 5 files getting created with correct file name, their content is wrong. 

 

I think in a loop it's being executed in parallel. I can see the file size gets increase when I check in network path

PrashantN
New Member

This issue is resolved after disabling concurrency Control in Apply to each action

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Users online (3,361)