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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
TexasBI
Helper II
Helper II

Can not update datasource through API

Hello,

 

I have followed the documentation for updated a datasource in a spcefic group. https://docs.microsoft.com/en-us/rest/api/power-bi/datasets/updatedatasourcesingroup#datasource but i still get an error. My body is set up properly and I have checked the spelling of the database and server. All I want to do is change Azure SQL DBs.

 

{
	"updateDetails": [
    {
      "datasourceSelector": {
        "datasourceType": "Sql",
        "connectionDetails": {
          "server": "server1.database.windows.net",
          "database": "database1"
        }
      },
      "connectionDetails": {
        "server": "server2.database.windows.net",
        "database": "database2"
      }
    }
   ]
}

 

 

 

{
    "error": {
        "code": "InvalidRequest",
        "message": "Operation is not supported for selector #44"
    }
}
4 REPLIES 4
Jayendran
Solution Sage
Solution Sage

Hi @TexasBI ,

 

Could you please make sure that your data source doesn't have any of the points listed in the restriction ?

 

Capture.JPG

 

 

@Jayendran  there are no restricitions.

Anonymous
Not applicable

Hi,

 

@TexasBI did you manage to solve the problem in the end?

Im struggling with the same issue. For some datasources my code works just fine, but in some cases it fails just like yours. I could use a hand.

 

Cheers,

Bence

unfortunently no. I think we ended up re building the pbix file becasue we think it got corrupted.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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