Forum Discussion

johnwest's avatar
johnwest
Regular Visitor
5 years ago
Solved

Error creating refreshment schedule of web content data with post method

I have a PBI Report Server that gets data from an API by POST method, something like:

 

 

let
    URL = "http://xxx/tstat",
    headers = [#"Content-Type"="application/json"],
    data = "{""query"":""test""}",
    web = Web.Contents(URL, [ Content = data, Headers = headers),
    result = Json.Document(web),
...

 

 

Everything works fine and I can refresh data using the desktop program.

 

Although when I try schedule the refreshing of the data on the report server I get "Unable to connect to the remote server. The exception was raised by the IDbCommand interface".

 

The same happens when I try test the connection.

 

Is it possible to create a refresh plan for POST requests on the on-premisses power bi (report server)?

2 Replies