Forum Discussion
Unable to refresh/schedule refresh WEB API call on Power BI service.
We have created one power BI desktop file which use/call WEB API through power query (Web.Content()method ) to call/import data.
When we refresh this power BI desktop file to fetch the data from the web api it works fine.
When we published this power BI desktop file to power bi cloud service and refresh/schedule refresh the Dataset (which get data from web api call) it given below mentioned error.
Unable to connect: We encountered an error while trying to connect to . Details: "We could not register this data source for any gateway instances within this cluster. Please find more details below about specific errors for each gateway instance."Hide details
Status code: 400
Error Code: DMTS_PublishDatasourceToClusterErrorCode
Time: Fri Aug 31 2018 12:08:25 GMT+0530 (India Standard Time)
Version: 13.0.6517.123
VM-Fleet-Gateway: Invalid connection credentials.
Underlying error code: -2147467259
Underlying error message: The credentials provided for the Web source are invalid. (Source at https://testurl/Customers.)
DM_ErrorDetailNameCode_UnderlyingHResult: -2147467259
Microsoft.Data.Mashup.CredentialError.DataSourceKind: Web
Microsoft.Data.Mashup.CredentialError.DataSourcePath: https://testurl/Customers
Microsoft.Data.Mashup.CredentialError.Reason: AccessUnauthorized
Microsoft.Data.Mashup.MashupSecurityException.DataSources: [{"kind":"Web","path":"https://testurl/Customers"}]
Microsoft.Data.Mashup.MashupSecurityException.Reason: AccessUnauthorized
Troubleshoot connection problems
Thanks
7 Replies
- v-yuta-msft
Community Support
Hi dheeraj_pareek,
There's some limitation with Web.Content(), as a workaround, please refer to this documentation.
Regards,
Jimmy Tao
- dheeraj_pareekFrequent Visitor
Hi Jimmy,
Thanks for update.
Please provide link for reference document.
Thanks
- v-yuta-msft
Community Support
Hi dheeraj_pareek,
Sorry, you can refer to this blog: https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power-bi/.
Regards,
Jimmy Tao
- AnonymousNot applicable
is it still not supported ? I am facing the same problem.