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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Anonymous
Not applicable

Custom Connector VS and PBI Desktop Inconsistency

I've been trying to create a custom connector for a REST API for the first time and appear to be getting some inconsistancies between the Visual Studio output and Power BI Desktop itself when using the custom connector. I've slimmed down the full code for simplicity sake.

 

Custom Connector (excluding the OAuth2 section):

 

 

 

 

shared TeamworksConnector.Contents = () =>
    let   
        source = ProjectUpdatesTable()
    in
        source;
ProjectUpdatesTable = () as table =>
    let
        projectsUpdates_relPath = "projects/api/v3/projects/updates.json",        
        request = Web.Contents(baseurl, [RelativePath=projectsUpdates_relPath]),
        json = Json.Document(request),
        projectUpdates = json[projectUpdates],
        #"Converted to Table" = Table.FromList(projectUpdates, Splitter.SplitByNothing(), null, null, ExtraValues.Error)   
    in
        #"Converted to Table";

 

 

 

 

When executing the following in Visual Studio it returns nothing, however, when using the connector in Power BI desktop it does return the expected result. I've inspected the connector to ensure it is indeed the same version. This is also hindering the ability to refresh in the service via the gateway. The error persists from VS PowerQuery SDK to the Power BI service but not Power BI desktop itself.

 

I also output various other tables in the Nav table for different endpoints which utilise the same logic and follow the same response structure, these work perfectly fine In both VS and PBI Desktop.

 

Picture of the output within the Nav Table utilising the exact same custom connector which is failing in VS:

AshB_0-1636568733373.png

 

Not sure where to look next, any suggestions?

 

 

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

I'm sorry I'm not quite sure what your problem is? Does it mean that custom connector works fine in VS and Power BI Desktop, but not in service and thus cannot be refreshed? Is there any error message? Could you please provide me with a screenshot of the error? Thank you.

In addition, please review the content in the following links about configure schedule refresh for custom connector. Hope they can help you.

Microsoft Power BI Data Connector

How to enable scheduled refresh for your custom connector

Best Regards

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.