web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unattended Web Automat...
Power Automate
Answered

Unattended Web Automation Error Status Code 400

(0) ShareShare
ReportReport
Posted on by 16

Hi,

 

I am using a scheduled cloud flow to call a flow built with Power Automate Desktop. The flow is successfully triggered, uses a gateway connection to a remote desktop, the PAD process kicks off, and fails on a button press action.

Error details: "Problem while executing action 'PressButton'. Button-press failed.:"

TAutomate_0-1615505143338.png

 

 

When I run the process inside of PAD it works smoothly with no issues 9/10 times. When I run the cloud flow in "Attended" mode it runs successfully as well. As soon I switch to unattended the error occurs. 

 

Any ideas are appreciated, thanks for the time.

I have the same question (0)
  • Verified answer
    jogden1 Profile Picture
    on at

    Have you tried setting the focus to the browser window in PAD?

  • TAutomate Profile Picture
    16 on at

    I think the window is already focused. I have successful actions on the browser in unattended mode prior to this action failing. Even a few successful button clicks. If it helps, this specific button click is an option in a drop down menu. 

    However, as I mentioned it runs successfully in PAD, fails in unattended mode. Is there a reason focusing the window would be optimized for unattended runs?

  • Verified answer
    jogden1 Profile Picture
    on at

    @TAutomate , It is more of a theory than anything. A few years ago I ran automation via UFT(QTP) on remote systems. When I would kick them off manually they would run fine (attended mode) but when I would let me go on their own (unattended) via a loop that would check for new rerecords before launching the macro it would fail. I noticed the focus was always on the UFT window when this would happen so I set the focus to the browser after launch and it worked. 

     

    I have not gotten this far with PA/ PAD yet as I am new to this platform but it is on my list for stage 2 of my flows, 

  • TAutomate Profile Picture
    16 on at

    Turns out this worked, thank you!

  • jogden1 Profile Picture
    on at

    Awesome, glad it worked. 

  • vxo15 Profile Picture
    8 on at

    Hello, 

    I am running into the same issue and can not figure out how to focus my browser. How do you focus to the browser window in PAD?

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 389

#2
Vish WR Profile Picture

Vish WR 331

#3
David_MA Profile Picture

David_MA 298 Super User 2026 Season 1

Last 30 days Overall leaderboard