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 / Scheduled Connection R...
Power Automate
Unanswered

Scheduled Connection Refresh from Excel Online Script -> Power Automate stopped working

(1) ShareShare
ReportReport
Posted on by 2
I have an excel file with connections that I want to refresh daily, automatically.
I wrote the simple one-liner script to refresh the connections and was running the script daily without error for a few months, and then recently in the last 2 weeks, the script has stopped working, and yields a non-specific error in Power Automate whenever it is run.
 
``` Excel Online Script
function main(workbook: ExcelScript.Workbook) {
  // Refresh all data connections
  workbook.refreshAllDataConnections();
}
```
 
I also deleted the script and started fresh with the macro recording of clicking the `Refresh All Connections` button to confirm it was the same function to use.
In Power Automate, whenever I try to schedule running the script, either by making the flow myself or by using the built-in option to schedule this script, I receive the following error message, with no logs attached.

"message": "We were unable to run the script. Please try again.\nOffice JS error: Line 3: Workbook refreshAllDataConnections: There was an internal error while processing the request.\r\nclientRequestId: $ClientID", 
"logs": [] 
}
 
Is there any solution or known outage of being able to refresh data connections on a schedule?
Thanks in advance for any assistance.
Categories:
I have the same question (0)
  • bcobra42 Profile Picture
    26 on at
    try   workbook.refreshAllDataConnections;  (get rid of the parenthesis) --nevermind this doesnt run the actual function its just gets skipped without error

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

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard