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 / Issues running PA Desk...
Power Automate
Unanswered

Issues running PA Desktop flows from a cloud flow

(0) ShareShare
ReportReport
Posted on by 129

I have a PA Desktop Flow that automates a proprietary application to generate several Excel reports using the application UI. When I trigger the Flow locally (from the PA Desktop app), it is nearly always successful (+ 99% success rate). But when I try to trigger the Desktop Flow to run attended on my computer from a scheduled Cloud Flow, it is consistentlyh failing on UI actions (e.g., 'Click UI Element') because it cannot find the designated window(s).

 

As I've dug into this, I have noticed that the behavior of the UI element selector seems a little off. In the screenshot below, I am attempting to select the "OK" button on the 'Export Settings' window, but Power Automate Desktop records it as the 'Report Dashboard' window which is two levels up. Not sure if this is expected behavior (referencing the parent window), but it seems to work when I run the Flow locally. I feel like the window designation needs to be editable in cases where PA Desktop selects the wrong window.

 

Has anyone run into similar issues? I can pull out the UI element actions and replace them with image and 'send keys' behaviors, which at least has the benefit of working consistently. But that doesn't seem like it should be necessary if the Desktop Flow runs fine when triggered on the local machine. Thanks for any suggestions!

 

StevenWade_0-1672863096549.png

 

I have the same question (0)
  • VJR Profile Picture
    7,635 on at

    Power Automate Desktop records it as the 'Report Dashboard' window which is two levels up. Not sure if this is expected behavior (referencing the parent window)

    If while creating the application those names were given then the same name will reflect in the selectors.

    To reconfirm check the hierarchy in the selector window.

     

    Running from the cloud flow will require proper focus on the correct window and wait stages wherever necessary. So make sure you include them if not there.

     

    Once again check if everything in the selectors are correct. And if only the necessary attributes are checked/ticked in the selectors window.

     

    If after lots of above modifications still facing issues then you can also go with Sendkeys Enter on the Export Settings dialog box to press the Ok button (instead of Image automation), but that will also require to give the focus to the correct window.

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard