Forum Discussion

Conlyn's avatar
Conlyn
Advocate I
3 years ago

Unwanted data source created when publishing rdl report

I am using the MicrosoftPowerBIMgmt powershell module to push rdl reports to workspaces. I then want to update the report data source to map to the proper data source that already exists in our on premise data gateway. The issue I am running into is that when I publish the report (or update the data source with the "\Default.UpdateDatasources" API call) it creates a new data source on the Data sources page and the report won't automatically map to the proper data source that has already been created. If I manually delete the newly created one it then finds the one I want it to use automatically.

 

Is there a way for the publish or UpdateDatasources processes to not automatically create the new data source, or to programatically delete those data sources that aren't associated to our data gateway?

2 Replies