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
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 tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Top Solution Authors
Users online (2,045)