Skip to main content

Notifications

Community site session details

Community site session details

Session Id : g7BNhm0z7n5AnGkyI0FGHb
Power Automate - Building Flows
Answered

Action 'Run_a_flow_built_with_Power_Automate_for_desktop' failed

Like (0) ShareShare
ReportReport
Posted on 30 Jul 2024 17:21:08 by 18
Hello,
 
I have a flow created in Power Automate Desktop containing 216 actions, and I wish to schedule this via Power Automate Cloud.
 
During the scheduled run time, sometimes the flow will fail with BadRequest and a statusCode of 400.
 
If I run the flow in Desktop it will tell me the action which the flow failed on, but for Cloud it returns the following:
 
 
I am required to run the flows unattended but if one fails, how would I know which action (from the message above) this actually failed on?
 
It does suggest it's on a 'Focus' action but my flow has 11 different "focus" actions.
 
In the above instance I know it failed at action 213 which is a "Focus window" action for a 3rd party application as I watched the flow run in attended mode, but how would I know when the flows are run unattended?
 
 
 
Thanks in advance.
 
Mark
  • markhollis Profile Picture
    18 on 30 Jul 2024 at 18:17:15
    Action 'Run_a_flow_built_with_Power_Automate_for_desktop' failed
    Hi AnthonyAmador,
     
    I was just about to post to say I've managed to find what I was looking for. I knew there had to be something but I just couldn't find it.
     
     
    It's exactly where you said it would be.
     
    Thanks for taking the time to reply.
     
    Cheers, Mark
  • Verified answer
    AnthonyAmador Profile Picture
    2,544 Super User 2025 Season 1 on 30 Jul 2024 at 18:04:50
    Action 'Run_a_flow_built_with_Power_Automate_for_desktop' failed
    Hi, 
     
    When you run a flow from a cloud flow, both the Cloud Flow run history and the Desktop Flow run history are created. If you search the Desktop Flows tab in the ‘My Flows’ section of the Power Automate Portal, you will see all the Desktop Flows. You can click on the Desktop Flow to view its run history, which will provide more information about where exactly it failed, action by action, and which actions worked or not. When it fails, it usually also adds a screenshot of the machine desktop at the exact moment it failed, which I think is very helpful.

    Let me know if this works. 
    Anthony.  

    If my reply answers your question, please like and mark it as verified. This helps me stay motivated to assist others and makes it easier for users with similar questions to find the answer. Thanks!
     

    Feel free to connect with me on LinkedIn!
     

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Automate - Building Flows

#1
stampcoin Profile Picture

stampcoin 51

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 39 Super User 2025 Season 1

#3
Chriddle Profile Picture

Chriddle 21 Super User 2025 Season 1

Overall leaderboard
Loading started