Forum Discussion
Datasource error (404): Fail to connect sharepoint excel file
- 5 years ago
No. Use the SharePoint connector. I do it all the time. If you are going for one file, connect via SharePoint. Then, once the files are listed, change the SharePoint.Files() function in the formula bar to SharePoint.Contents(). (It is case sensitive)
then drill down to your file. Power query will open it and show you everything in the file, not just one tab. It will also refresh more reliably in the service.
Question - why are you using the Web.Contents function vs connecting to SharePoint via SharePoint.Files or SharePoint.Contents?
- Anonymous5 years agoNot applicable
Because I would like to connect a data to a specific excel file in the sharepoint. I have done a research that if we do so, we should get data from Web.
- edhans5 years agoCommunity Champion
No. Use the SharePoint connector. I do it all the time. If you are going for one file, connect via SharePoint. Then, once the files are listed, change the SharePoint.Files() function in the formula bar to SharePoint.Contents(). (It is case sensitive)
then drill down to your file. Power query will open it and show you everything in the file, not just one tab. It will also refresh more reliably in the service.
- Russo1 year agoHelper I
I'm using the Web.Contents to conncect to a sharepoint spreadsheet also. I have a fair amount of applied steps after the source. What would be the best way to change it to sharepoint connection?