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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
johnwest
Regular Visitor

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)?

1 ACCEPTED SOLUTION
d_gosbell
Super User
Super User

I don't have a post API where I can test this, but you may be running into a variation of this issue https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power... so maybe try putting the url directly into the call to web.contents rather than referencing the URL variable and see if that helps.

View solution in original post

2 REPLIES 2
johnwest
Regular Visitor

Thats it d_gosbell, problem solved. The “Skip Test Connection” option on Power BI data sources does not exist on report server. So it's necessary that the base url on web.content can be reachead by a GET request.

 

I find it in the link inside the link you suggested here 

 

Thank you!

d_gosbell
Super User
Super User

I don't have a post API where I can test this, but you may be running into a variation of this issue https://blog.crossjoin.co.uk/2016/08/23/web-contents-m-functions-and-dataset-refresh-errors-in-power... so maybe try putting the url directly into the call to web.contents rather than referencing the URL variable and see if that helps.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.