Forum Discussion

Richtpt's avatar
Richtpt
Helper I
4 years ago
Solved

Error 429 Too Many Requests using Invoke-PowerBIRestMethod refreshes

I'm working on a DevOps Release Pipeline for Power BI.  It was working fine with the last piece being to refresh the dataset.  But now when I try it again I get error 429 TooManyRequests.  Nothing changed in my Pipeline. 

 

In my Powershell I use Connect-PowerBIServiceAccount -ServicePrincipal. 

Then Invoke-PowerBIRestMethod /Default.Takeover.

Then Invoke-PowerBIRestMethod /Default.UpdateParameters to change a parameter in the pbix report.

Then Invoke-PowerBIRestMethod /Default.BindToGateway.

Last Invoke-PowerBIRestMethod /refreshes.

 

If I run it again all the other Invoke-PowerBIRestMethod's work fine, I only get the 429 error on refreshes.  If I comment all the other Invoke's out and only have the refreshes method I still get the 429 error.  If I go to the workspace web page and refresh there it works fine.  I even copied the urls from the logs and pasted them in VSC to run them.  All of the other methods run fine but the refreshes url gives me the 429 error.

 

Can anyone give me more insight to what is going on with the refreshes method?  What am I doing that's too many requests?  Can I only issue the refreshes method a certain number of times per hour/day/dataset?  Is there a way to fix this, like a setting to change?

 

Thanks!