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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

TestConnection handler for On-Premises Data Gateway not working

Hey guys,
I'm trying to make my custom connector work through the on-premises data gateway, and as i've read here, i need to make a TestConnection handler. The examples given illustrate the cases when you have only an url, or multiple non url parameters.
The thing is, on my shared main function, i ask the user for an URL and other 2 parameters, and i don't know how to make it work. 
Anyone knows the syntax for this?

Thank you.

1 REPLY 1
Anonymous
Not applicable

UPDATE: I just realized that i don't have an url as parameter, is of type text. I don't know if its the best practice, but i don't really need a url of Uri.Type because i don't implement an OAuth flow. Also, it is working fine on PBI Desktop. I'm going to try to make the gateway work with this.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.