Forum Discussion
Excel Sharepoint Data Refresh - Can't refresh your data
- Anonymous9 years ago
Hi cmncp,
Firstly, for excel located in on-premises SharePoint site, we need to use Windows authenticaion. For Excel located in SharePoint Online, we need to use OAuth2 authentication.
Secondly, to access on-premises data source, gateway is required when refreshing dataset. And both personal gateway and on-premises gateway require Pro.
Thanks,
Lydia Zhang
Hi cmncp,
I am not able to reproduce your issue. How do you connect to the Excel file in Power BI Desktop, via “Get Data->Web” entry?
When you connect to the Excel file, please choose Organizational account type in Power BI Desktop, once you publish the Power BI Desktop file to Power BI Service, go to Settings for your dataset, then check if you get OAuth2 authentication method under Data source credentials section.
Thanks,
Lydia Zhang
Hi Lydia.
Thanks for the reply. I was using Get Data > Excel, not Get Data > Web.
When I use the Web option, and then choose OAuth2, it works when my file is in One Drive for Business, but not when it is in Sharepoint Online, which is the requirement.
When trying to connect to Sharepoint Online, I do the following:
- Get Data > Web
- Enter the URL of the excel file (minus the ?Web=1 querystring)
- I then choose Organizational Account and click Sign In. I get the following error:
"The WWW-Authenticate header doesn't contain a valiud authorization URI. Header value: 'NTLM'."
- Anonymous9 years agoNot applicable
Hi cmncp,
Enter URL using format like: https://XXXXX.sharepoint.com/sites/XXXX/Shared%20Documents/excelname.xlsx .
Thanks,
Lydia Zhang- cmncp9 years agoHelper III
I discovered that my issue was that the Sharepoint installation was actually on premise, not online.
- Anonymous9 years agoNot applicable
Hi cmncp,
Please follow the guide in this similar thread to connect to Excel file located at on-premises SharePoint from Power BI Desktop. After you publish Power BI Desktop to Power BI Service, you would need to add the excel data source under on-premises gateway in order to refresh the dataset.
Thanks,
Lydia Zhang