cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Frequent Visitor

Refresh not working for OAuth based Custom Connector in Power BI Service

Hi, we developed a custom connector for Power BI. It works fine perfectly in Power BI desktop. But, it doesn't work so in Power BI service. Both Manual and Scheduled reason fails for anonymous reason and atleast if the refresh log had a clearer note. We could have debugged the error. 

Things we did :

1. Read an answer stating the need for "TestConnection" which is already set in our connector.

2. Cross checked data gateway which is also perfectly fine

3. Looked for solutions across the community but couldn't find any solution that could resolve our issue. 

 

Hence, kindly anyone who has faced this issue and has overcome it successfully kindly throw us some light on crossing this issue. 

Thanks in advance!

7 REPLIES 7
Highlighted
Solution Sage
Solution Sage

Hi @srivathsan_v ,

1. Try to check your desktop version, update it to the latest version, and republish to service.
2. Try Use personal gateways in Power BI

3. Here is a similar post, you can refer to: Error while refreshing data from custom connector

Best Regards,

Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted

Hi @v-joesh-msft

I checked your steps but couldn't find any solution. I also explored the gateway logs and found the actual error. It says DM_GWPipeline_Client_OAuthTokenRefreshFailedError which basically is failure of oauth token refresh. I found the reason, but couldn't find any solution. Any help to this is largely appreciated. Thanks!

Highlighted
Frequent Visitor

Same error for me.

Did you find any solution?

Highlighted

Same error for me. I checked the fiddler traffic and it appears that the api is returning the information I'm requesting through the custom connector, but Power BI Service isn't taking it in for whatever reason. Works perfectly find in Power BI Desktop. Anyone have any luck?

Highlighted

I'm stuck at exactly the same point. My custom connector for Google Spreadsheets works great in PowerBI Desktop, but in PowerBI Service both manual and scheduled refresh are causing problems.
I can set up the gateway connection for my uploaded report in PowerBI Service, enter my Oauth2 credentials and schedule a refresh without problems. However, at the scheduled refresh time or when manually refreshing, Service is showing the following error:

{"error":{"code":"DM_GWPipeline_Client_OAuthTokenRefreshFailedError","pbi.error":{"code":"DM_GWPipeline_Client_OAuthTokenRefreshFailedError","parameters":{},"details":[],"exceptionCulprit":1}}} 

 

I'm also having a tough time finding how to resolve this. Has anybody managed to fix this?
If it helps, I can post my connector code - let me know.

Highlighted

bump, am also running into this...

 

https://i.imgur.com/oJnGkT3.png

Highlighted
Frequent Visitor

Bump any progress @v-joesh-msft ?  Getting the same error.

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Community Conference

Microsoft Power Platform Communities

Check out the Winners!

secondImage

Create an end-to-end data and analytics solution

Learn how Power BI works with the latest Azure data and analytics innovations at the digital event with Microsoft CEO Satya Nadella.

Top Solution Authors
Top Kudoed Authors