
Announcements
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!
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.