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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now


Custom Connector raising error with Data Gateway in Power BI Service

Hi Community,


I've just built a custom connector to enable me to connect to Xero's API. It is working in Power BI Desktop, but fails to refresh in Power BI Service.  here:

I have installed and set up both Data Gateway Personal and Shared. The credentials I'm using are definitely correct and work fine in Desktop. 

I have the TestConnection line in my code which I believe should make the connector compatible with Gateway.

Can anyone offer any suggestions or advice?


Thank you!


Screenshot 2021-01-12 131130.png



Community Support
Community Support

Hi @jaime_blackwell ,


  1. Add a TestConnection handler to your connector
  2. Install the On-Premises Data Gateway in Personal mode
  3. Enable Custom Connector support in the Gateway
  4. Publish a workbook that uses your connector to
  5. Configure scheduled refresh to test your connector

Please refer to : 


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

Hi Liang,

I'm not sure if you read my post. I've already completed those steps and I'm still experience the error. Do you have any advice for resolving this? Thanks!

Helpful resources

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.