Forum Discussion
On-Premise Data Gateway error for Web Data Source - underlying error: (404): File Not Found
- 6 years ago
Hi Anonymous ,
Try to add the following query into query editor:
let Source = Web.Contents("http://<ServerName>.com/<SitePath>/<SiteName>",[RelativePath = "/_vti_bin/owssvr.dll?XMLDATA=1&List={<ListID>}&View={<ViewID>}&RowLimit=0&RootFolder=%2f<SitePath>%2f<SiteName>%2fLists%2f<ListName>Selection={<ItemID>}-{<ItemID>}EditWebPage=Formatting=NonePreFormattedTextToColumns=TrueConsecutiveDelimitersAsOne=TrueSingleBlockTextImport=FalseDisableDateRecognition=FalseDisableRedirections=FalseSharePointApplication=http://<ServerName>.com/<SitePath>/<SiteName>/_vti_binSharePointListView={<ViewID>}SharePointListName={<ListID>}RootFolder=/<SitePath>/<SiteName>/Lists/<ListName>&IncludeVersions=TRUE"]) in Sourceif it's okay,then publish the .pbix file to service,and then configure the data source to see whether there's an error.
Best Regards,
Kelly
Hi Anonymous ,
Try to use an empty .pbix file to connect with the following URL using a web connector(shown as below):
http://<ServerName>.com/<SitePath>/<SiteName>/_vti_bin/owssvr.dll Don't write any parameters inside,then publish to service to check whether it can configure the datasource from sharepoint.
Sometimes it may happen when the gateway machine cant visit the datasource, using the above steps to rule out the factor.
Best Regards,
Kelly
Hi v-kelly-msft
I tried this and I get file not found errors in both Power BI Desktop and in a browser. When I enter the full URL I see the data in both places. I think this is due to the conversion of the data to XML? That's what the rest of the URL defines.
My colleague configuring the gateway has also confirmed that when he puts the full URL into the browser on the server the gateway is configured on, he sees the XML data as well.
Thanks
Olivia
- v-kelly-msft6 years agoCommunity Support
Hi Anonymous ,
Try to add the following query into query editor:
let Source = Web.Contents("http://<ServerName>.com/<SitePath>/<SiteName>",[RelativePath = "/_vti_bin/owssvr.dll?XMLDATA=1&List={<ListID>}&View={<ViewID>}&RowLimit=0&RootFolder=%2f<SitePath>%2f<SiteName>%2fLists%2f<ListName>Selection={<ItemID>}-{<ItemID>}EditWebPage=Formatting=NonePreFormattedTextToColumns=TrueConsecutiveDelimitersAsOne=TrueSingleBlockTextImport=FalseDisableDateRecognition=FalseDisableRedirections=FalseSharePointApplication=http://<ServerName>.com/<SitePath>/<SiteName>/_vti_binSharePointListView={<ViewID>}SharePointListName={<ListID>}RootFolder=/<SitePath>/<SiteName>/Lists/<ListName>&IncludeVersions=TRUE"]) in Sourceif it's okay,then publish the .pbix file to service,and then configure the data source to see whether there's an error.
Best Regards,
Kelly- Anonymous6 years agoNot applicable
Hi v-kelly-msft
This has resolved the issue, this data source can now connect to the gateway successfully. Thanks very much for your help 🙂
Olivia
- Anonymous6 years agoNot applicable
Hi v-kelly-msft
May I also get help for my web page data source? I have posted something similar on this page:
Seeing that this post has been resolved by modifying the URL of the web source, it's possible that this can apply to my case as well ☹️