Showing results for 
Search instead for 
Did you mean: 
New Member

Loop Error when creating Flow to move a file with a specific word to a secified folder

Hi, i am having issues creating a flow to move a files with a specific word in the document title to a specific folder.


For example, if a file is dropped into a specified folder and has the word "Weekly" in the title i want the flow to move/create that file to a folder within that site called Weekly Meetings


Below is the flow i have created, but i am getting an infinate loop error?




Can someone please advise where i am going wrong?



Super User III
Super User III

@PGClax13_VG Are you getting an Error or warning? Your folder paths in the source 'When the File is created' and destination 'Create File' action are different so you should not get an Error, you might get a warning. You can ignore it(save the flow), but keep a close watch on your Flow Run History to just make sure that an infinite loop is not triggered(Very IMPORTANT).


If you get into a Infinite loop problem, you can work around it by adding some logic if you Power Automate.


For example in the article, I use a column(Yes\No) to get around the infinite loop,


Another article that you would want to refer is


I hope the above helps.

Thanks CFernades, It is a warning rather than an error, however when i test and add a file with the word Weekly in the title the flow does't action and jumps straight to the No part of the Control.  I wasn't sure if that was caused by the warning or if my logic is just incorrect.?

@PGClax13_VG We will try to get around your problem.


As per my understanding your File Name includes weekly(screenshot below).




I have then used another Trigger 'When a File is created(Properties only)' so that I get more properties.


You can find my solution below.



Note: Please make sure the source and destination folders are different to avoid the infinite loop.


If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

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!

Microsoft Ignite

Microsoft Power Platform: 2021 Release Wave 1 Plan

Power Platform release plan for the 2021 release wave 1 describes all new features releasing from April through September 2021.

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 (40,872)