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