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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

PBI Rest API : Datasets - Update Datasources In Group (PowerBIEntityFrameworkOperationException)

Hi folks,

 

I'm calling the endpoint described here https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup in bid to reconfigure my Analysis Services data source. My Analysis Services instance resides on-premise thus is delivered via a Gateway Cluster and Dataset. 

 

The HTTP POST Body is roughly the following:

 

{
"updateDetails": [
{
"datasourceSelector": {
"datasourceId": "Datasource GUID HERE",
"connectionDetails": {
"database": "CURRENT_CUBE_NAME",
"server": "CURRENT_CUBE_SERVER"
},
"datasourceType": "AnalysisServices",
"gatewayId": "Gateway GUID HERE"
},
"connectionDetails": {
"database": "NEW_CUBE_NAME",
"server": "NEW_CUBE_SERVER"
}
}
]
}

 

Sadly the request constantly throws the below HTTP 400 Bad Request error:

 

"error":{"code":"PowerBIEntityFrameworkOperationException","pbi.error":{"code":"PowerBIEntityFrameworkOperationException","parameters":{},"details":[]}}}

 

Interestingly, this was all working up until a few months ago.

 

Any help would be appreciated.

 

Many Thanks,

 

Tim.

4 REPLIES 4
lbendlin
Super User
Super User

Do you get the same error message in the sandbox?

Anonymous
Not applicable

Yes 😞

lbendlin
Super User
Super User

Are you currently the dataset owner or did someone else take it over?

Anonymous
Not applicable

I am the dataset owner. I explicitly take ownership with this call https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/takeoveringroup before attempting to update the data source.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.