Skip to main content

Notifications

Community site session details

Community site session details

Session Id : hJ6XmSYbXlIjz0WmcUkfSW
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,321 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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

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 - Power Automate Desktop

#1
eetuRobo Profile Picture

eetuRobo 60 Super User 2025 Season 1

#2
Nived_Nambiar Profile Picture

Nived_Nambiar 18 Super User 2025 Season 1

#3
CU12050101-0 Profile Picture

CU12050101-0 12

Overall leaderboard