Skip to main content

Notifications

Community site session details

Community site session details

Session Id : caT6q9oOQfXJo4hxERP3Pf
Power Automate - Power Automate Desktop
Unanswered

Keyboard Shortcut Issue in Unattended Mode (Excel Data Refresh)

Like (1) ShareShare
ReportReport
Posted on 31 Jul 2024 07:59:25 by 12

Hi everyone,

I'm experiencing a strange issue with keyboard shortcuts in unattended mode. I've built a simple PAD flow to refresh data in an Excel file (Data -> Refresh All).

Here's the situation:

  • Attended Mode: The flow works perfectly, clicking the "Refresh All" button as expected.
  • Unattended Mode (Initial Attempt): When running unattended, the flow throws a UIPI error when trying to interact with the button.
  • Unattended Mode (Workaround Attempt): To avoid the UIPI error, I replaced the button click with a keyboard shortcut (e.g., Ctrl+Alt+F5 or whatever shortcut maps to "Refresh All"). The error is gone, but the data is not actually refreshing in the Excel file.

It seems like keyboard shortcuts should work in unattended mode. I'm stumped as to why this isn't working.

Has anyone else encountered this issue or have any suggestions on how to resolve it?

Thanks in advance for your help!

Categories:
  • Suggested answer
    eetuRobo Profile Picture
    3,245 Super User 2025 Season 1 on 07 Aug 2024 at 08:16:39
    Keyboard Shortcut Issue in Unattended Mode (Excel Data Refresh)
    Have you tried the keyboard shortcut workaround attempt with attended mode? Does it work normally then?
    Make sure the Send keys -actions Ctrl + Alt + F5 is correct syntax: {Control}({Alt}({F5}))

    Do you have Focus window -action before the keyboard shortcut send keys so that the shortcut will be pressed on the Excel window?
  • Amlan Sahoo Profile Picture
    4 on 31 Jul 2024 at 11:07:07
    Keyboard Shortcut Issue in Unattended Mode (Excel Data Refresh)
    You can do it using code stagecinstead of doing it through shortcut. Either you can run a macro or convert the same macro to VB.net and use. Excel and shortcuts never work properly. 
  • Deenuji_Loganathan_ Profile Picture
    6,105 Super User 2025 Season 1 on 31 Jul 2024 at 08:41:22
    Keyboard Shortcut Issue in Unattended Mode (Excel Data Refresh)
    Hi There,
     
    Could you please share exactly how your flow throwing UIPI error? If possible please share the screenshot

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started