Forum Discussion
Automatic Refresh not working when connecting to SharePoint Online file
- Anonymous7 years ago
shampayne,
Based on your description, you want to configure OneDrive refresh for your dataset. And you want to get updated data in Power BI report when you change data in Excel source within one hour.
In this case, you would need to directly connect to the SharePoint online Excel file in Power BI Service using Get Data->Files->SharePoint option. Then create report in Power BI Service and configure OneDrive Refresh for the dataset.
Regards,
Lydia - 7 years ago
Thank you for the responses. This is truly helping understand the capabilities and limitations of this very valuable feature.
I have done some initial tests based on the feedback from this thread and have gotten it to work successfully in some scenarios.
Scenario 1 (working)
File Configuration
- Created an Excel spreadsheet in Excel Online. Saved to a Sharepoint document library. *NOTE* This spreadsheet MUST be formatted as a table to work.
- Created a PowerBI Report directly in the PowerBI Service website
- Clicking My Workspace > +Create in the top right corner > Report > Import New Data > Files > Get > Sharepoint - Team Sites > Paste in Sharepoint URL > Connect > Load the newly created spreadsheet that's saved in the Sharepoint document library
PowerBI Setup
- After loading in the above, I created a handful of visualizations in the Dataset and the saved as a new report
- Checking the Schedule Refresh option of the Dataset shows that OneDrive refresh is enabled. Note that Scheduled Refresh was not an option
Testing
- Went back to the Excel spreadsheet that is saved on Sharepoint Online and added some random data using Excel Online
- Checked the report about an hour later on the PowerBI Service website and saw that it accurately reflected the changes that were made to the spreadsheet on Sharepoint Online
Scenario 2 (not working)
I did basically the same thing as Scenario 1 only created the PowerBI Report using PowerBI desktop as opposed to PowerBI Service website. I used the exact same Spreadsheet as Scenario 1 saved in the same Sharepoint Online location as Scenario 1. Saved the PBXI desktop file to the same Sharepoint Online document library as where the spreadsheet is located. Then imported the PBXI desktop file to the PowerBI Service using Get Data option. This shows that OneDrive refresh is enabled but it will not pick up the changes when the Excel file is changed in Excel Online while Scenario 1 does. Checking the refresh history shows that the Dataset in this scenario has not been refreshed.
TLDR; It appears that when a report is created using PowerBI desktop, automatic refresh does not work even though PowerBI Service shows that OneDrive refresh is configured correctly and enabled. Everything works if the report is created using PowerBI Service (which is not an option for many of us).
Has anyone found a solution to this? I am in the same situation, pulling data from excel files on Shapoint (online), and when data gets added to the excel file, the scheduled/manual refresh runs without errors, but the data is not shown in the report.