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 / Problem while executin...
Power Automate
Unanswered

Problem while executing action 'SendKeys'. Failed to send keystrokes [Only in Unattended RPA mode]

(0) ShareShare
ReportReport
Posted on by 82

Hi Experts,

 

I'm getting following error  while running in Unattended mode.. In attended mode its working fine. 

error : Problem while executing action 'SendKeys'. Failed to send keystrokes.

 

I have tried Send text as hardware keys  On & Off > Any suggestions ??

Shashankpuli_0-1621538808324.png

 

 

I have the same question (0)
  • ychen Profile Picture
    5 on at

    Hi @Shashankpuli, were you able to find a solution to that? I am facing the same problem as well when running in the unattended mode.

  • Shashankpuli Profile Picture
    82 on at

    Hi @ychen ,  I did not and raised ticket to Microsoft support team few days back and they are investigating on this issue. Ill post the solution once I get update from them.  

  • Shashankpuli Profile Picture
    82 on at

    @ychen solution provided from Microsoft, I did not tried yet. Hope this is helpful for you. 

     

    Solution: In some scenarios, Power Automate Desktop may run unattended flows in a lower resolution than the one used to develop the flows. As a result, some UI elements could be hidden from the screen and cause flows to fail.

    To change the resolution in which unattended flows are run:
    Navigate to C:\Program Files (x86)\Power Automate Desktop and open the UIFlowService.exe.config file.
    Set the value of the Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionEnabled key to true.
    The appropriate keys in the UIFlowService.exe.config file.
    Change the values of the following keys to the proper screen resolution width, height, and scale, respectively:
    Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionWidth
    Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionHeight
    Microsoft.Flow.RPA.UIFlowService.ScreenDefaultResolutionScale
    Restart Power Automate Desktop. 

     

  • ychen Profile Picture
    5 on at

    Thank you @Shashankpuli, I will try that next time.  

  • Community Power Platform Member Profile Picture
    on at

    Did we get the right solution from MS support team? because I don't think the issue is related to lower resolution. I am not getting any error like "Failed to send keystrokes" but my keys are not passing to the element.

  • Community Power Platform Member Profile Picture
    on at

    @Anonymous 

    Did you use Focus Window to activate the window prior to sending keys?

    Before sending keystrokes to an open application, use the Focus window action to activate the respective window.
    Automate applications using keyboard shortcuts - Power Automate | Microsoft Docs

  • Community Power Platform Member Profile Picture
    on at

    Thanks @Anonymous 

     

    Tried to bring the window to the front by using "Focus Window", but still my keys are not passing to the system.

     

    Please refer the screenshot

    SanthoshC_0-1630471530874.png

     

     

     

  • ablevinsalix Profile Picture
    2 on at

    @Shashankpuli or @Anonymous did you find a resolution for this? I'm wondering if I'm have the same issues as you are.

     

    Thanks

  • yoko2020 Profile Picture
    495 on at

    If it can be solved using ui automation or image automation, please avoid using sendkey because it is hard to trace/debug.

     

    Sendkey will drop on any windows which got focused when the sendkey action executed.

  • Community Power Platform Member Profile Picture
    on at

    No @ablevinsalix, still the issue remains.

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

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard