Forum Discussion
Dhruvin27
4 years agoNew Member
Power BI PowerShell - A task was canceled.,Microsoft.PowerBI.Commands.Reports.GetPowerBIReport
I have 1500+ Workspaces in my Power BI Tenant. When I loop through the Workspaces and try to Get Reports using the following code snippet, it is working for few workspaces. Around (30 Workspace). ...
AndreaQ
3 years agoNew Member
You can integrate request with this script. Timeout seconds are in $timesleep. just looping it ...
i use for
Add-PowerBIWorkspaceUser
don't forget if statement
$apiTraceback = Resolve-PowerBIError -Last
$text = $apiTraceback.Response
[regex]$usernameReg = "(\d\d\d\d)"
$timesleep= $usernameReg.Match($text).Value
Start-Sleep -s $timesleep