Forum Discussion
Excel Datamodel scheduled refresh
- Anonymous2 years ago
Alan_ , so I'm not sure what the issue is, but the Power Automate task is failing on the refresh. It worked when I tested it, but on the schedule for the last 2 weeks, it has been failing:
{ "error": { "code": 504, "source": "flow-apim-msmanaged-na-northcentralus-01.azure-apim.net", "clientRequestId": "****" "message": "BadGateway", "innerError": { "status": 504, "message": "Request to Graph API has timed out.\r\nclientRequestId: ****", "error": { "message": "Request to Graph API has timed out." }, "source": "excelonline-ncus.azconn-ncus-001.p.azurewebsites.net"The Service Refresh is working fine. The Power Automate task runs after about an hour after the service refreshes the Dataset. The flow has 2 retries.
** UPDATE ** Turns out the refresh Office script is timing out due to it taking longer than the 2 minutes limit that Power Automate has for Office scripts. Changing the Timeout duration on the Run Script step does not fix this.
So knowing this, this "solution" is no longer the solution we thought it was. We need another way to do this.
** UPDATE 2 **
Turns out that I got the Power Automate to finally work! It takes about an hour and a few retries, but it finally refreshed successfully. I had to set Fixed Intervals on the Run Script Action Step, but that seemed to work. Will have to monitor the flow's performance next week. I upped the Count to 20. On the sucessful run it retried 5 times.
Hi Anonymous,
From Oct 31, 2023,
- Scheduled refresh and refresh now for existing Excel files that were previously configured for scheduled refresh will no longer be allowed.
- Local workbooks uploaded to Power BI workspaces will no longer open in Power BI.
So, you need to download the pbix file, upload it as new report where Excel sheet data will be configured as Power BI Data set. And, then have schedule refresh.
Powerbyosh , anyway you can elaborate a bit on that? You say download the PBIX file....That is usualy for Dashboards or PowerBI Projects on the workspace. For the Excel refrehses, there is not a Power BI Visual or dashboard its using. Just the workbook.
The Service was refreshing the workbook on a schedule. If we are moving to the newer Power BI Datasets, how can we get the same funcationality where the refreshes are pushed to the Excel Workbook after the Power BI Dataset refreshes on a schedule?
- Powerbyosh2 years agoHelper I
Anonymous That means, you need to connect Excel through a cloud connection like Sharepoint or Onedrive online portal. Then, you can schedule a refresh through the cloud connections.
We wouldn't be able to open the report which has Excel as a data source with a local path. Hope this is clear- Anonymous2 years agoNot applicable
Powerbyosh , That is the confusing part for me. All of the Workbooks that are on the Power BI Service that I am talking about all reside on Sharepoint / OneDrive. All of the Datasources for the Power Queries are all Sharepoint Sources (no local sources). We are not using the Excel Workbook on the Power BI Service as a Data Source.
The output of those Power Queries are output to a Pivot Table and also added to the Data Model for End Users to consume the data.
These workbooks are connected (Uploaded) to the Power BI Service so that we can schedule a daily or weekly refresh of the Data model so that the data on the Spreadsheet is up to date when the end user opens it.I don't know how else to explain our situation other than how I just explained it.
ibarrau suggested we rebuld all of the reports in Power BI Desktop and then publish that to the Workspace. This option is not feesable for all situations we uses these workbooks for.- Powerbyosh2 years agoHelper I
Anonymous If you have a data source from SharePoint, I don't think it is a problem. As of now, you have scheduled refresh and working fine, you dont need to change. Because the update is for local data sources.