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
Solved! Go to Solution.
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.
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
Learn to digitize and optimize business processes and connect all your applications to share data in real time.
Did you know that you could restore a deleted flow? Check out this helpful article.
Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.
At the monthly call, connect with other leaders and find out how community makes your experience even better.