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 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'."
Hi cmncp,
Enter URL using format like: https://XXXXX.sharepoint.com/sites/XXXX/Shared%20Documents/excelname.xlsx .
Thanks,
Lydia Zhang
- cmncp9 years ago
Helper 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- cmncp9 years ago
Helper III
Sorry for the late reply. When I use this method, I am still unable to refresh the data. See the error message below. The only options in authentication method are Anonymous and Windows.