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,
In Power BI Desktop, you should use Windows authentication to connect to Excel file located at on-premises SharePoint Site. And when you refresh dataset in Power BI Service, you should use Windows authentication as well.
Thanks,
Lydia Zhang
Hi Anonymous
This is what I am doing. I get the error message shown above when I am in the Power BI web service, trying to edit the connection details. I choose Windows Auth, click sign in, and get that error.
Chris
- Anonymous9 years agoNot applicable
Hi cmncp,
Are you able to use on-premises gateway to refresh your dataset?
Thanks,
Lydia Zhang - cmncp9 years agoHelper III
Anonymous,
I didn't know you could do that! 2 questions
- Should I use Windows or OAuth2 athentication?
- Is it possible to set it up without using the gateway? Using the gateway means we have to go on the PRO license.
- Anonymous9 years agoNot applicable
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 - cmncp9 years agoHelper III
Hi Anonymous
Now that I am trying to configure this is production, I am having more problems. Using a test folder I got this working ok. But now trying to connect to a different folder, it is not working.
A folder has been created in a Sharepoint Library, and I have uploaded my spreadsheet into it. I can point my data connection in PowerBI Desktop to it and it refreshes. I am now trying to add a new connection to the Power BI Gateway.
The sharepoint (on prem) URL is "https://<site>.<company>.com/function/ZZBS/ZZBSAPAC/DH/DRMHR" I think "DH" is the site, and "DRMHR" is the library. There is a folder within the library that contains my files.
If I try and add a new gateway datasource and use the full URL "https://<site>.<company>.com/function/ZZBS/ZZBSAPAC/DH/DRMHR", I get the error "SharePoint: Request failed: The remote server returned an error: (400) Bad Request.".
If I use the URL "https://<site>.<company>.com/function/ZZBS/ZZBSAPAC/DH", it works ok. However when I publish my Power BI report, it does not allow me to "Use a data gateway". The option is grayed out. It is like it is not recognizing that the connections are the same.
Please help!
- cmncp9 years agoHelper III
For anyone who has the same problem, this issue was resolved by selecting "Web" rather than "Sharepoint" when adding the new datasource to ther gateway.
- manjirit7 years agoHelper I
I have a similar issue. I have a Power BI file that is using Excel file on Sharepoint as data souces. When I refresh the dataset from Power BI desktop, it goes through without any problem but the refresh for the file published on the Power BI service fails with "Edit Credentials" message.
what is happening?
