I'm building a system to generate screenshots of multiple Power BI reports, embedded at my website with different filter combinations by CloudConvert, but as I checked on Internet I think hitting concurrent loading/embed limits causing empty data in mostly generated images. Here's my flow for this:
Current Implementation
Data Collection
- A Script generates urls of combinations of:
ReportID × Page/Tab × FilterValues - Total combinations: ~50,000 (but testing with smaller no. of combinations)
- A Script generates urls of combinations of:
CloudConvert Processing
// Sample PHP code for calling API to create capture tasks $tasksArr = array(); foreach($combinationsOfURLArr AS $embedurl){ $taskArr[] = array( 'capture-' . $uniqueId => [ 'operation' => 'capture-website', 'url' => $embedurl, 'delay' => 20, // Wait 20 seconds before capture 'wait_until' => 'network_idle' ); ) $response = $client->post('https://api.cloudconvert.com/v2/jobs', $taskArr);Callback Handling
- CloudConvert calls our webhook when done
- Server downloads ZIP with screenshots
Problem is
First 40-50 reports: Perfect screenshots with all data
Remaining reports: Visuals appear empty (background loads but no data)
Successful workaround
Processing 40 reports with 10-minute gaps works perfectly
Diagnostics Performed
Checked Power BI capacity limits:
GET https://api.powerbi.com/v1.0/myorg/admin/capacities1Response shows mixed SKUs:
{ "value": [ {"sku": "A1", ................. }, {"sku": "P1", ................. }, {"sku": "PP3", ................. }, {"sku": "F64", ................. } ] }What I Need Help With
Timing Configuration: How can I calculate optimal Delay between captures (delay parameter in CloudConverter) and
Max. number of Tasks in a Job for CloudConverter
Required wait time between batches
Note: I do not have access of PowerBi account, I am accessing through Service Principal credentials.
Please help me or if there any alternative of this please let me know. Thanks,