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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Flow runs remain in ca...
Power Automate
Suggested Answer

Flow runs remain in cancelling state

(0) ShareShare
ReportReport
Posted on by
Whenever Im trying to cancel the flow run, the state remains in cancelling but its taking longer to update the status.
Categories:
I have the same question (0)
  • stampcoin Profile Picture
    5,058 Super User 2025 Season 2 on at
    You can choose that one (Canceling) , then check if you cancel available.
    If not available, resubmit it and then click cancel before it  finishes.
    good luck.
  • Michael E. Gernaey Profile Picture
    53,452 Super User 2025 Season 2 on at
     
    Try Turning the Flow off and back on.
     
    If you resubmit it, you will simply start another, and still have that one stuck in cancelling.
     
    You want to actually cancel it.
     
    Also note, that its possible that it will stay this way for 2-4 days before it finally cleans up. Its a whole back end stuck process that occurs. However technically speaking, turn it off and on will stop those. But it still might say running until a few days when cleanup occurs
     
    If these suggestions help resolve your issue, Please consider Marking the answer as such and also maybe a like.
    Thank you!
    Sincerely, Michael Gernaey
  • Suggested answer
    Riyaz_riz11 Profile Picture
    3,891 Super User 2025 Season 2 on at
    Hi,

    Wait for Natural Timeout

    • Most flows will eventually timeout (usually 30 days for premium connectors, 5 minutes for basic)

    • The cancelling status should resolve automatically once the timeout occurs

    •  

    Force Stop via PowerShell

    powershell
    # Install Power Platform CLI if not already installed
    pac auth create --url https://yourenvironment.crm.dynamics.com
    pac flow list
    pac flow cancel --flow-id <your-flow-id> --run-id <your-run-id>
     

    Preventive Design Changes

    Add Timeout Controls


    • Configure timeout settings in your flow actions

    • Set shorter timeout values for HTTP requests and other external calls

    • Use the "Configure run after" settings to handle failures gracefully

    •  

    Implement Cancellation Tokens


    • Use variables to track cancellation requests

    • Add condition checks at strategic points in your flow

    • Design loops and long-running processes to check for cancellation signals


    •  

    Break Down Long-Running Processes


    • Split complex flows into smaller, manageable chunks

    • Use child flows that can be cancelled independently

    • Implement checkpoints where the flow can safely stop

    •  

    Administrative Solutions

    Environment Admin Actions


    • Contact your Power Platform administrator

    • They can force-terminate stuck flows through the admin center

    • May require escalation to Microsoft support for persistent issues

    •  

    Flow History Cleanup


    • Delete the flow run history if the flow eventually completes

    • This won't affect the cancellation but cleans up the interface
     
    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 525 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 324 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard