Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello everyone,
i am trying to connect the Power BI Client to a REST API by a Dataset.
The Dataset i am tryin to run, looks like this:
I alway get the error, that says, this is an invalid request.
I dont get what there is been missing or where the error is? I didnt find anything through researches.
Am I Missing the Authentification (X-RPC-Auth-Username / X-RPC-Auth-Password / X-RPC-Auth-Session)?
If yes, where do i have to insert it?
I am very thankful for your help,
Regards
Solved! Go to Solution.
In the body step of your query, it looks like you're passing a JSON object in the body of the request. A JSON parser would recognize the values for jsonrpc and id as numbers instead of strings. It would also have trouble parsing the value you have for method; it wouldn't recognize it as a string.
I'm not sure what the structure of the request should look like, but it's very likely these values should all be strings.
Try this instead:
let
url = "...",
bodyContent = [ jsonrpc = "2.0", method = "cmdb.objects.read", params = [apikey = APIKEY], id = "1" ],
body = Json.FromValue(bodyContent),
Source = Json.Document(Web.Contents(url, [Headers = [#"Content-Type" = "application/json"], Content = body] ))
in
SourceNote: I assume you have the value for APIKEY defined properly elsewhere.
If that doesn't work, try making the same request with Postman. Also, what does the API documentation say about that -32600 status code?
In the body step of your query, it looks like you're passing a JSON object in the body of the request. A JSON parser would recognize the values for jsonrpc and id as numbers instead of strings. It would also have trouble parsing the value you have for method; it wouldn't recognize it as a string.
I'm not sure what the structure of the request should look like, but it's very likely these values should all be strings.
Try this instead:
let
url = "...",
bodyContent = [ jsonrpc = "2.0", method = "cmdb.objects.read", params = [apikey = APIKEY], id = "1" ],
body = Json.FromValue(bodyContent),
Source = Json.Document(Web.Contents(url, [Headers = [#"Content-Type" = "application/json"], Content = body] ))
in
SourceNote: I assume you have the value for APIKEY defined properly elsewhere.
If that doesn't work, try making the same request with Postman. Also, what does the API documentation say about that -32600 status code?
Sorry for the delay and a big thank you tonmcg !!! It works with the square brackets
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 34 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |