web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Rerunning Daily Flows ...
Power Automate
Suggested Answer

Rerunning Daily Flows that look back 24 hours

(0) ShareShare
ReportReport
Posted on by 2
I have a flow that runs every day at 5am. Due to the size of the sharepoint list it is linked to, I have an array created from the columns in the list I need, and then filter that array based on created date being between now and 5am on the previous day.
 
My problem is that if the flow fails on a Saturday monring, and I don't see it until Monday, how can I rerun it as at Saturday without having to edit the filter every time? Is there a better more dynamic way I can set up the flow?
 
this is my current Filter

@greaterOrEquals(item()?['CreatedDate'], addHours(startOfDay(addDays(utcNow(), -1)), 5)) )
Categories:
I have the same question (0)
  • Suggested answer
    Ellis Karim Profile Picture
    12,073 Super User 2026 Season 1 on at
     
    If you fix the conditions that caused the error then you should be able to resubmit the flow: https://youtu.be/LS-rZkk29r8
     
     
     
    Ellis
     
  • AS-03121158-0 Profile Picture
    2 on at
    Hi @EKarim, If say it failed 3 days ago and I did not notice; when I rerun the failed flow, will it not only look at my items created in the last 24 hours, not in the 24 hours preceeding the failure?
     
    Case: Flow runs 7 dec at 5am
    Filter: All new items created between 6 Dec at 5am -> 7 dec at 5am (run time)
    Flow fails
     
    9 Dec failure is spotted. If I rerun on the 9th, will the filter not now contain all items created between now and 5am on the 8 Dec, therefore missing everything created between 6 Dec at 5am -> 8 Dec at 5am
     
  • Ellis Karim Profile Picture
    12,073 Super User 2026 Season 1 on at
    I think you are correct. The success of resubmitting the flows is going to depend on the conditions. The use of utcNow() in the flow will unfortunately take the current time, and not the time the flow was initially run and when it failed.
     
    What is causing the error? Can we add some actions that can catch this error to prevent the flow from failing?
     
    Other options:

    (1) One option is to create a copy of the flow so you can run this flow manually. The flow should accept the value of addHours(startOfDay(addDays(utcNow(), -1)), 5) when the flow failed. But now you'll have two flows to maintain and keep in sync.
     
    (2) Another option is to use child flows, but this is more complex, and all your flows need to be inside solutions. You can call your main flow from a scheduled flow or from a manual run flow (again, you'll need to get the value of addHours(startOfDay(addDays(utcNow(), -1)), 5) from the failed flow runtime).
     
     
     
    Ellis

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 791

#2
Valantis Profile Picture

Valantis 582

#3
Haque Profile Picture

Haque 529

Last 30 days Overall leaderboard