microsoft / microsoft/powerbi-powershell

Export-PowerBIReport failing with An error occurred while sending the request

Open
#237 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
413
Forks
134
Avg merge
33m
Merged PRs (30d)
1

Description

I have a powershell script that logs in and downloads reports from a workspace. It has been working fine until recently the account I was using had its password expire. I logged in and updated the password and then updated my script. The script now logs in but when it gets ready to export the report it fails with this error:

Export-PowerBIReport : An error occurred while sending the request.
At C:\Users\awirth\power_bi_download.ps1:39 char:1
+ Export-PowerBIReport -Id $ReportId -OutFile $FinalPath
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : WriteError: (Microsoft.Power...rtPowerBIReport:ExportPowerBIReport) [Export-PowerBIReport], HttpRequestException
+ FullyQualifiedErrorId : An error occurred while sending the request.,Microsoft.PowerBI.Commands.Reports.ExportPowerBIReport

Can you give me some insight as to why I would be receiving this error or what further steps i could take to troubleshoot?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Begin at the Export-PowerBIReport invocation on line 39 of power_bi_download.ps1 and reproduce the failure with the updated credentials. Capture the complete exception and request details, then determine whether the report export succeeds; document the cause and troubleshooting steps or identify the needed fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
api, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.