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 / How can I automaticall...
Power Automate
Unanswered

How can I automatically terminate the process after an error occurs during the 'Run Excel macro' action?

(0) ShareShare
ReportReport
Posted on by

I have 'Run Excel macro' actions in my Power Automate flow,

and sometimes, during this action, Excel goes into a 'not responding' state.

 

This state persists until I manually terminate Excel through the task manager,

causing all the scheduled processes to become queued.

 

I want to implement a process where,

if the runtime exceeds 15 minutes, the process is terminated.

 

Is it possible to do so?

I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The Run Excel macro action does not have a timeout parameter. And you cannot really have a parallel action doing some wait or counter in PAD to actually check how long the macro is running for. There are also no global timeout functionalities in PAD alone. The only way to really do this would be if you were calling your desktop flow from the cloud portal and then make the cloud flow timeout after a certain number of minutes. When that happens, it would throw an error and the desktop flow would be terminated.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 276 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 169

#3
Haque Profile Picture

Haque 154

Last 30 days Overall leaderboard