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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
NicoVerachtert
Regular Visitor

New connection when changing ownership Dataset

Hi,

 

I'm in the process of automating a release pipeline where the connections of datasets are changed from the development sql server to those of the production environment. Using the Rest API's I'm able to take ownership of the dataset as Service Principal, and even able to change the connectionDetails. However the next step is to bind it to the correct gateway, and this is where the setup fails thusfar. 

We have 2 On-Premise Gateways, both configured with connections for the dev and prd - sql server.

For some reason, every time the dataset ownership is changed, the new owner will have created a new (offline) connection leading nowwhere. 

So before the ownership: we have in connections for that dataset: Connection_DEV, Connection_PRD. After the ownership change, the new owner will also see 'server.net;database'. Now this new connection should already be known to the system, as the Connection_PRD also points to the same connection. When I tried it with a normal user, and with a Service Principal, I made sure both users were added to both the connections and the gateways as admins.

 

Is this normal behaviour? Is there a way to disable the creation of this new connection when changing ownership? 

2 REPLIES 2
GilbertQ
Super User
Super User

Hi @NicoVerachtert 

 

What I think you need to do first is to create a connection for your service principal in the gateway prior to changing the ownership. I would then assume that it would find the connection because it will use the combination of the service principal and connection to map it correctly.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Hi Gilbert,

 

Thanks for the reply!

 

I made sure both the user and service principal were added as admins to the existing connections (both were part of the group that was the default admin, but I made sure to add them again). This still results in the same behaviour.

 

Or did you mean something else?

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors