cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Robpt
Advocate I
Advocate I

Run Application Excel.exe like Microsoft Documentation example fails - Can't retrieve main window handle

Following documentation example in https://docs.microsoft.com/en-us/power-automate/desktop-flows/how-to/identify-window-handle fails with error:

 

"Can't retrieve main window handle for application 'C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE'."

1 ACCEPTED SOLUTION

Accepted Solutions
Robpt
Advocate I
Advocate I

For some reason (probably after a computer restart), it now works, i can get the handle when launching Excel. 

View solution in original post

2 REPLIES 2
Johnnyg
Community Support
Community Support

Hello Robpt,

Could you share your PAD 'Run Application' action details to me for reference? There's one old doc which refers to the same exception. I reckon you could try with it.
https://docs.microsoft.com/en-us/previous-versions/troubleshoot/winautomation/support-tips/ui-automa... 

 

 

 

Best Regards,
Johnny
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Robpt
Advocate I
Advocate I

For some reason (probably after a computer restart), it now works, i can get the handle when launching Excel. 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Top Kudoed Authors
Users online (3,952)