Forum Discussion

dheeraj_pareek's avatar
dheeraj_pareek
Frequent Visitor
8 years ago

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