Forum Discussion
Data connection syntax issue - changing to URL
Hello,
I have had a connection set up in Power query (for PowerBI) which previously was set up via a file path. However, we're now transitioning the data connection to come through a service account which has meant we need to switch the connection to web based so connect via sharepoint to update the gateway.
However, when we've tried to do this, it came up with a Token Literal expeted error which I understand as an issue with the syntax.
This is the current syntax:
=Excel.Workbook(Web.Contents("URL Address"), null, true)
I've also had another error come up "couldn't authenticate credentials".
Any ideas? Thanks in advance!!
Hi ICush
You need to change a source, not just a path if it is a SharePoint.Please refer :
https://powerbi.tips/2016/09/loading-excel-files-from-sharepoint/
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
1 Reply
- Ritaf1983Super User
Hi ICush
You need to change a source, not just a path if it is a SharePoint.Please refer :
https://powerbi.tips/2016/09/loading-excel-files-from-sharepoint/
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly