Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

(0) ShareShare
ReportReport
Posted on by

Hi there,

 

I wonder if you can help me out with this one. I built a Microsoft Approvals Flow so that when a file is approved, the file is removed from one Microsoft Teams Folder called "Pre-Approved" and is then put into the "Approved" folder.

 

 built the following part of my flow so that the original file deposited in the "Pre-Approved" folder is deleted. This works with the flow I built however in the Run History for this flow, it still hasn´t succeeded i.e. it is still running. Please see my flow below.

 

StuartBoyd7_0-1625732493085.pngStuartBoyd7_1-1625733136749.png

 

StuartBoyd7_2-1625733195991.png

 

My question really is, if the flow is working, why is it not succeeding? What can I do to get it to succeed because I don´t want to have lots of runs and they are all still running in the background. I tried adding in the "succeed" action after "mover el archivo" here and it worked but I really don´t want to have to do this to be honest...

 

Thanks!

  • Community Power Platform Member Profile Picture
    on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hi @ekarim2020 @rrovira ,

     

    Good news! I have managed to sort it myself. Basically the action "When a file is created or modified" is not needed. Upon deleting this action, the flow worked fine! It successfully deleted the file from the "Pre-Approved" folder. 

     

    Thanks for your help!

     

    Stuart

  • Community Power Platform Member Profile Picture
    on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hi @ekarim2020 

     

    This is the way I did the "move file" action:

    StuartBoyd7_0-1625810631484.png

     

    I have set the "When a File is Created" in the "Approved" folder so it should recognise that a file is being moved there no? I think this might be where it is failing because it´s not really being "created" it´s been "moved" to a subfolder. 

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    You are creating a file in the /Shared Documents/Pre-approved folder, then moving it to /Shared Documents/Approved folder:

    ekarim2020_5-1625779513208.png

    What are the properties of the Move file action?

    ekarim2020_4-1625779430216.png

    Ellis

  • Ellis Karim Profile Picture
    10,912 Super User 2025 Season 1 on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    The flow is waiting for the trigger event "When a file is created or modified" to occur - but this isn't happening, so the flow is waiting here until the trigger event occurs:

    ekarim2020_1-1625778160689.png

    When a file is created or modified in a folder : "Triggers when a file is created, and also each time it is modified in a SharePoint folder. The trigger does not fire if a file is added/updated in a subfolder. "

    A a test, you can write a new flow starting with the trigger When a file is created or modified in a folder , then manually create files as you would expect them to be created by your main flow, then see if the trigger event occurs or not:

    ekarim2020_3-1625778996751.png

    Ellis

  • rrovira Profile Picture
    Microsoft Employee on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    I haven't found anything groundbreaking, but I'd like to ask you if you have the MS Teams folder open when the file is being created or modified. If you do, could you please try closing it and see if the flow continues normally. 

     

    I also read that some users fixed this by exporting the flow (recreating the connections), let me know if this helps! Cheers!  

  • Community Power Platform Member Profile Picture
    on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hi @rrovira 

     

    Correct. When i run the flow it deletes the file from the "pre-approved" folder but when i go into the power automate tool, the "When a file is created or modified" just keeps running minute after minute and none of the following parts of the flow run... they are blacked out as shown in the following screenshot:

     

    StuartBoyd7_0-1625765876529.png

     

  • rrovira Profile Picture
    Microsoft Employee on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hello, @Anonymous!

     

    Just to double check before continuing investigating. You say everything works fine but the flow never stops running, right? 

     

    Cheers

  • Community Power Platform Member Profile Picture
    on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hi @rrovira 

     

    Thanks for your response. I don´t think it is this. Can you check the whole of my flow? The double approval is before I ask it to move the file from Pre-Approved to Approved and then to delete from the Pre-Approved folder. I have a double approval in it:

     

    StuartBoyd7_0-1625754684634.png

     

    StuartBoyd7_1-1625754738108.png

    StuartBoyd7_2-1625754774468.png

     

    StuartBoyd7_3-1625754793739.png

     

     

     

    StuartBoyd7_5-1625754886293.png

     

    StuartBoyd7_6-1625754907964.png

     

     

     

     

  • rrovira Profile Picture
    Microsoft Employee on at
    Re: Microsoft Flow built and working but in the Run History, the action is still running. How can I fix this?

    Hello, @Anonymous!

     

    It could be because of the wait for the approval action. It won't finish until the user has approved it or rejected it. 

     

    Cheers! 

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,651 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,999 Most Valuable Professional

Leaderboard

Featured topics

Restore a deleted flow