web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 641

#2
Vish WR Profile Picture

Vish WR 640

#3
Haque Profile Picture

Haque 495

Last 30 days Overall leaderboard