Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
ariam
Regular Visitor

Data Source Credentials with Custom Connector Problem

Hello!

I have a custom connector that can't get past the data source credentials on PowerBI Web version in order for me to schedule a data refresh, even though it works fine on the Desktop version. I narrowed the problem down to the "TestConnection" part of the connector code, but I cannot figure out what to do from here to fix the error. This connector was written in 2018 so I'm hoping someone knows what I can do to update the code to work.

Here is the line of code:

ariam_0-1665169464708.png

Error message:

ariam_1-1665169579597.png
Error message when I try and sign in after selecting Edit credentials:

ariam_2-1665169629042.png

 

According to Microsoft's website, the problem lies in my test connection but I cannot seem to find how to fix that. Ideally I would love to write the code to skip the test connection but I don't know what to use for that. Additionally, when I try and fix it from the data gateway, it says I cannot skip the connection and it doesn't show any option to select when I try and select an authentication method:

ariam_3-1665169766921.png


I appreciate anyone's help with this!

 

2 REPLIES 2
Anonymous
Not applicable

Hi @ariam ,

 

Have you tried to republish the .pbix which works fine in Desktop to Power BI Service and then configure the gateway again?

 

 

 

Best Regards,

Stephen Tao

 

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

I have yes but it doesn't seem to work still. I think the problem is specifically with the testconnection line of code and I read somewhere that the test connections may not like API's being used, but I am hoping there is a way to bypass it or to re-write the code to only look at the website and not the API.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.