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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
emikelsoft
Helper I
Helper I

Change datasource for custom connector (Web.Contents -> REST API) disabled

Hi,
we developed a custom connector with

[DataSource.Kind = "Foo", Publish = "Foo.Publish"]
shared Foo.Contents = Value.ReplaceType(NavTable, type function (Url as Uri.Type) as any);

Based on that connector we published a pbix file with only the model in it.
Within the model we have defined meassures, date tables etc.
The idea is to give the model-only pbix to our customers, so we need to change the datasource to connect to their data.

Unfortunatelly the "Change source"-button ist disabled:
emikelsoft_0-1709823500620.png

 

How can we change the datasource to another url?
br, Michael

8 REPLIES 8
emikelsoft
Helper I
Helper I

Does somebody have a working example to enable the change datasource button for custom connectors?
I am wondering myself, that nobody else is asking for this.
From our point of view every business application developer wanting to enable his customers to use a semantic model would need this feature.

br, Michael

emikelsoft
Helper I
Helper I

I am still struggling to change the datasource in the datasource settings dialog, because the button ist disabled.
I coul not find any reference of the requirements for a custom connector with an Uri.Type parameter in Web.Contents that this button gets enabled. 
Any ideas?

emikelsoft
Helper I
Helper I

When I use a standard OData-Feed, I can change the source in the Power BI Desktop dialog. If I use a custom connector it is not possible (grayed out). The custom connector uses an REST-API with Web.Contents.
What is the reason for that?

You would have to ask the developer of the custom connector.

I am the developer of the custom connector!
I can not find any documentation of the requirements that the datasource is changable.

lbendlin
Super User
Super User

You want to use different connector?  You have to start over.

 

You want to use the same connector?  Edit the Power Query code "Source" step.

OK, in the meanwhile I found some other posts regarding this topic.
The common sense seems to be to edit the source in Power Query Editor on all tables, this is pretty time consuming. It would be nice, if we could just change the source like the dialog suggests.

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

May 2025 Monthly Update

Fabric Community Update - May 2025

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

Top Solution Authors