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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
navaraj
Frequent Visitor

Failed to update direct query dataset from REST api Datasource

api url : https://api.powerbi.com/v1.0/myorg/groups/xxxxxxxxxxxxxxxx/datasets/1xxxxxxxxxxxxxx/Default.UpdateDa..."

Added provided json for connection details. Output as error shown below. please provide feedback ??

Result as :

object(stdClass)#2 (1) {
  ["error"]=>
  object(stdClass)#7 (3) {
    ["code"]=>
    string(10) "BadRequest"
    ["message"]=>
    string(11) "Bad Request"
    ["details"]=>
    array(2) {
      [0]=>
      object(stdClass)#8 (2) {
        ["message"]=>
        string(101) "Bad JSON escape sequence: \I. Path 'updateDetails[0].connectionDetails.server', line 12, position 35."
        ["target"]=>
        string(66) "updateDatasourcesRequest.updateDetails[0].connectionDetails.server"
      }
      [1]=>
      object(stdClass)#9 (2) {
        ["message"]=>
        string(50) "'updateDatasourcesRequest' is a required parameter"
        ["target"]=>
        string(24) "updateDatasourcesRequest"
      }
    }
  }
}
0 REPLIES 0

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

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.