Skip to main content
Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Flow Runs Sporadically - Hangs on Running

(0) ShareShare
ReportReport
Posted on by 10

Hello,

 

I'm having an issue with a flow I'm trying to build.  It seems to work ~10 times in a row and then will get hung on "running" on step 5 below and never complete unless I cancel it or manually intervene.  The flow is doing the following:

 

 -  Monitoring e-mails with an attachment named "Confirmation Tracking.xlsx"

 -  Extracts the attachment and saves it to a OneDrive folder

 -  Loads the contents of the Excel document from OneDrive to a SharePoint List

 -  Moves the attachment from the original OneDrive folder to an archive folder and appends a date to the name

 

For testing, I'm using the exact same file with the exact same data each time. I send the same attachment to the monitored e-mail address.  When the flow hangs on "running", I can go into OneDrive and manually delete the Confirmation Tracking.xlsx file and re-upload, and then the flow will complete successfully.  I can't figure out why it's hanging occassionally on this, I've tried adding a Delay Until for 45 seconds between the file being written to OneDrive and the process of reading it to load to the SharePoint List.  

 

Any help would be much appreciated. 

 

Here are my flow steps:

 

Step 1: Setup the mailbox to be reviewed for attachments and initialize the variable for the Delay Until:
step1.jpg

 

Step 2: Look at the attachment to see if the name contains "Confirmation Tracking.xlsx":
step2.jpg

 

Step 3: If it meets that condition, it creates a file in a OneDrive folder named "Test_Extract"
step3.jpg

 

Step 4: Monitor when a new file is created in "Test_Extract" folder, Delay Unit for 45 seconds, Get Rows from "Confirmation Tracking.xlsx":

step4.jpg

 

Step 5: Add the items from "Confirmation Tracking.xlsx" to the SharePoint list:
step5.jpg

 

Final Steps: Move to archive and delete the file from the original folder:
step6.jpg

 

This works ~90% percent of the time, but the other 10% it just gets stuck on step 5 and will not finish "Running" unless I manually cancel the flow, manually delete and re-upload the file to the Test_Extract folder, or it runs for like 5 days and times out.

 

Any input would be much appreciated.

  • MW630 Profile Picture
    10 on at
    Re: Flow Runs Sporadically - Hangs on Running

    Hello @v-yamao-msft,

     

    It is just one Flow that I broke out in pictures. Here is the entire flow in one screenshot. I renamed some of the sections from the original screenshots so it would be easier to understand what they're doing.

     

    Entire Flow.jpg

  • v-yamao-msft Profile Picture
    on at
    Re: Flow Runs Sporadically - Hangs on Running

    Hi @MW630,

     

    It seems that you have two flow created?

     

    In the second flow, how could you use dynamic contents from the action Get rows? Per my test, there is no available dynamic content can be selected cause the table cannot be detected.

     

    Could you share more details to help reproduce this issue on my side?

     

     

    Best regards,

    Mabel Mao

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1