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 ,
The 400 ERROR means a bad http request. Please updata on-premise gateway to the lastest version. If you already have updated the gateway to the latest version, then you can refer to steps below for troubleshooting.
1. Check if the server is using a proxy and the proxy. Some proxies restrict traffic to only ports 80 and 443. By default, communication to Azure Service Bus will occur on ports other than 443.
2. You can force the gateway to communicate with Azure Service Bus using HTTPS instead of direct TCP. You will need to modify the Microsoft.PowerBI.DataMovement.Pipeline.GatewayCore.dll.config file. Change the value from AutoDetect to Https. This file is located, by default, at C:\Program Files\On-premises data gateway.
3. Restart the gateway and check if the issue persists.
To stop the service, run this command:
''' net stop PBIEgwService '''
To start the service, run this command:
''' net start PBIEgwService '''
4. You may export the data gateway log by selecting Diagnostics and then selecting the Export logs link near the bottom of the page. Reference: https://docs.microsoft.com/en-us/power-bi/service-gateway-onprem-tshoot#tools-for-troubleshooting.
Hope this would help.
Best Regards,
Kelly
Hi v-kelly-msft
Thanks for your reply, we have the latest version of the software and have completed the checks you suggested:
- Port 80 is being used.
- On this version of SharePoint, we don't use https. Is that an issue? Like I said I have successfully configured the other data sources which query this same site.
- My colleague restarted the gateway and I am still seeing this error.
- We have exported the data gateway log, should I send this to you directly to help further?
Many thanks,
Olivia
- v-kelly-msft6 years agoCommunity Support
Hi Anonymous ,
If so ,pls try to shift to HTTPS instead of direct TCP,then restart the gateway and see if the error still occurs.
Best Regards,
Kelly
- Anonymous6 years agoNot applicable
Hi v-kelly-msft
I have checked and HTTPS was already enabled. Is there anything else we can do?
Thanks
Olivia
- v-kelly-msft6 years agoCommunity Support
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.dllDon'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