cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
wx5558284 Frequent Visitor
Frequent Visitor

Power shell for download pbix file is not work for big dataset

Hello,

 

I used to using power shell script to backup all reports from a workspace. Recently the script cannot download pbix files with big size as 400MB up, all reports less than 200MB are fine. The script is working fine in Feb 11th and it only download an 1kb file for the big ones since Feb 13th. Is there any new update on size limitation?

 

Our script in download part is:

 

$auth_header = @{
'Content-Type'='application/json'
'Authorization'=$token.CreateAuthorizationHeader()
}
$source_group_path = get_groups_path($source_group_ID)
New-Item -Path $temp_path_root -ItemType Directory
$temp_path = "$temp_path_root\$report_name.pbix"
"== Exporting $report_name with id: $report_id to $temp_path"
$uri = "https://api.powerbi.com/v1.0/$source_group_path/reports/$report_id/Export"

try {
Invoke-RestMethod -Uri $uri –Headers $auth_header –Method GET -OutFile "$temp_path"
} catch {
Write-Host "= This report and dataset cannot be copied, skipping. This is expected for most workspaces."
continue
}

 

Thank you!

1 REPLY 1
wx5558284 Frequent Visitor
Frequent Visitor

Re: Power shell for download pbix file is not work for big dataset

Today the script successfully download all large dataset report as it did before, the bug seems fixed.