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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate with co...
Power Automate
Unanswered

Power Automate with condition

(0) ShareShare
ReportReport
Posted on by 12

I've developed a Power Automate for managing inventory. After refreshing the inventory dataflow, I also refresh the dataset linked to it. Typically, the dataset refreshes within 15-20 minutes, but occasionally it takes several hours. I'm looking to implement a condition where if the refresh exceeds one hour, the dataset refresh is automatically canceled. I'm unsure how to implement this condition and would appreciate any assistance. Thank you!

 

DHira20_0-1710883042199.png

 

Categories:
I have the same question (0)
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Follow these steps

    SudeepGhatakNZ_0-1710883858904.png

     

    SudeepGhatakNZ_1-1710883988325.png

     

    Add a parallel branch to handle the timeout

    SudeepGhatakNZ_2-1710884068060.png
    SudeepGhatakNZ_3-1710884083818.png

     

  • DHira20 Profile Picture
    12 on at

    Thank you @SudeepGhatakNZ ! What do I need to put it under inputs in Compose.

    DHira20_0-1710885803727.png

     

  • DHira20 Profile Picture
    12 on at

    Also my settings for "Refresh a dataset" looks different than your Screenshot. Can you please confirm if this is correct. 

    DHira20_1-1710885952444.png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Ignore the compose and the post actions. In your case, it should represent the happy path, these should be the actions that should run in case the Refresh a dataset action does not timeout.

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    You are using the new designer. The screenshots I shared are from classic designer.

     

  • DHira20 Profile Picture
    12 on at

    Thank you @SudeepGhatakNZ. In Terminate, I have kept Parameters Status Cancelled and in settings I have selected "Has timed out". IN refresh a dataset, for testing purposes, I have kept 5 mins but still the dataset is running beyond 5 mins, it is not cancelling.

    DHira20_0-1710944927085.png

    DHira20_1-1710944943473.pngDHira20_2-1710945058065.png

    DHira20_3-1710945187002.png

     

  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    Your logic looks good. Can you try this on the classic designer?

     

  • DHira20 Profile Picture
    12 on at
    I am not sure how to get the classic designer. Thank you!
  • SudeepGhatakNZ Profile Picture
    14,394 Most Valuable Professional on at

    SudeepGhatakNZ_0-1711070175293.png

     

  • DHira20 Profile Picture
    12 on at

    Thanks SudeepGhatakNZ. I changed back to classic designer, still the dataset is running beyond 5 mins.

     

    DHira20_0-1711459474494.png

    DHira20_1-1711459558382.png

     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
trice602 Profile Picture

trice602 237 Super User 2026 Season 1

#2
David_MA Profile Picture

David_MA 176 Super User 2026 Season 1

#3
Power Platform 1919 Profile Picture

Power Platform 1919 96 Super User 2026 Season 1

Last 30 days Overall leaderboard