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

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
BartVW
Helper I
Helper I

Enhanced refresh with the Power BI REST API - RequestId not valid

hi community

 

I'm creating a flow to perform a Power BI Enhanced dataset refresh. 
 
According to the documentation, after doing the POST to refresh the dataset, the RequestId that is returned from the POST can be used to check the status of that refresh.
 
When I do these steps in Postman, it works ok. I can use the RequestID I get from the POST to then do a GET (as described here in the article).
 
When I do the same steps in Power Automate (using the same authentication etc), the RequestID I get from the POST is not recognized when trying to the GET Refresh history in the 2nd step.
 
Would anyone know why this could be?
 
Many thanks
Bart
 

 

 

1 ACCEPTED SOLUTION

In the meantime I found the reason for above behavior, thanks to Chris Webb's blog here.

 

Turning off the Asynchronous Pattern option in the Settings dialog of the HTTP action did the trick for me.

 

BartVW_0-1732624394764.png

 

View solution in original post

3 REPLIES 3
v-yiruan-msft
Community Support
Community Support

Hi @BartVW ,

You can refer the following links to refresh Power BI dataset:

Refresh your Power BI dataset using Microsoft Flow | Microsoft Power BI Blog | Microsoft Power BI

How to Refresh Power BI Dataset Using Power Automate

vyiruanmsft_0-1722501104973.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

hi @v-yiruan-msft 

 

Your link describes the normal (non-enhanced) dataset refresh. The problem is that this only triggers the refresh, but doesn't provide any feedback on whether it was succesful or not. 

 

The enhanced data set refresh allows to do this by doing the process in 2 steps: first call the dataset refresh api using POST and including a body to trigger it as an enhanced refresh operation, and then call the data set refresh api using GET to check the status of the refresh, using the requestId from the first step (as described in the documentation link I provided),  but for some reason it doesn't work as documented in Power Automate (and does work OK in Postman).

 

So hope you or anyone else has an idea how to resolve this.

 

Thanks

Bart

In the meantime I found the reason for above behavior, thanks to Chris Webb's blog here.

 

Turning off the Asynchronous Pattern option in the Settings dialog of the HTTP action did the trick for me.

 

BartVW_0-1732624394764.png

 

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

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

Top Kudoed Authors