Hi there,
I have got a flow for refreshing a dashboard in Power BI when an archive checkbox is clicked, but when that happens I get the most of the time, the error "Invalid dataset refresh request. Another refresh request is already executing" with Statuscode: 400. Sometimes the flow does work, but I can't figure out why. Can anybody help me to get rid of this problem? In the picture below you can see the flow with the error and a overview from the results of the flow.
In advanced,
Thank you very much
Before issuing your dataset refresh request you should query the refresh history to check if a refresh is currently in progress. If it is then you should drop your own request.
Be aware that the "Request a refresh" action is asynchronous. It does NOT wait for the completion of the refresh.