Forum Discussion

miketechspeak's avatar
miketechspeak
Frequent Visitor
5 years ago
Solved

PowerBI Service Too Many Requests for PDF reports

I implemented the export to PDF reports for your customers as detailed here. For our customers to download PDF copies of our reports, which seems to be working OK.  https://docs.microsoft.com/en-us/...
  • miketechspeak's avatar
    miketechspeak
    5 years ago

    Update:
       Apparently the issue I was hitting up against was because of limitations specific to the ExportTo functionality being a preview feature, with it's own very limited limitations as denoted here:
    https://docs.microsoft.com/en-us/power-bi/developer/embedded/export-to#limitations
    What I was hitting up against was a 50 page per hour limit. So I can send as many as I want, as fast as I want , albeit there is no way to batch the requests, that is until the visible page count exceeded 50 pages for the tenant that hour. After which I will continually get the error, until the early requests timeout. 

    The current temporary fix is a dumb brute force one of once I get the error, check once every minute until it goes through. As to my knowledge there is no means to interrogate the API to know how close you are to hitting the limit, or when the limit will free up. I thought about trying to keep track of my own requests, but as it is tenantwide, it seemed to likely a possibility, at least for me, that another request could throw off the timing. 
    Hopefully the feature goes live soon, so this won't be continually necessary. But if you are hitting this as well. Be sure to reup your authentication token, because that also expires after an hour  as well.