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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Valera
Regular Visitor

Data source for dataset with incremental refresh cannot be updated via REST API

Hi!

There is a PBIX with data source options. I publish it to the workspace and try to update the data source via API endpoint.
But this endpoint does not update the existing data source but adds a new one.
As a result, the dataset has 2 data sources.
This behavior is observed only for datasets with an incremental refresh.
In regular reports, the data source is updated successfully.


How can I update the data source for such a report?

Thanks,
Valera


4 REPLIES 4
Dan2
Helper I
Helper I

Hi Valera, did you get an answer for this? I have the exact same problem where it is creating a new datasource instead of updating on incremental refreshes. 

Valera
Regular Visitor

Hi @Dan2 
Unfortunately not. But we were able to bypass this issue via parameters. We added ServerName and DbName parameters to report:

Valera_0-1702890555685.png

And updated them using this endpoint: https://learn.microsoft.com/en-us/rest/api/power-bi/datasets/update-parameters

Valera
Regular Visitor

Hi @yingyinr,
Thanks for your answer.
Nothing from mentioned limitations is related to my dataset.
XMLA endpoints wern't used.
Data source is SQL server.
There are no parameters in connection details: just plain server address and DB name.
Also, there was mentioned that "The original data source and the new data source must have the exact same schema."
Not sure what it means, but seems to be not related to my case.
Here are API endpoints that I execute:
Retrieving of existing datasources:

Valera_0-1659687593860.png

Updating this datasource via UpdateDatasource endpoint:

Valera_1-1659688008124.png

Retrieving datasources after update:

Valera_2-1659688110296.png

As a result a new datasource was added instead of updating of existing one.
I also checked the same report without incremental refresh.
It works as expected. The existing datasource is updated.

Anonymous
Not applicable

Hi @Valera ,

Please check if it hit any following limitations, you can find the details in your shared documentation....

yingyinr_0-1659681516066.png

If the dataset didn't hit any above limitation, please provide the involved data sources in the dataset and executed operations on it. Thank you.

Best Regards

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.

June 2025 community update carousel

Fabric Community Update - June 2025

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