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. 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Kudoed Authors
Users online (2,344)