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

While downloading Power BI report, it downloads an inappropriate file which has a type "File".

I am trying to download Power BI report which have 3 pages. By returning the "async Task<ActionResult> GetExportedFile" method like this. A file downloads, but  

 

saadashraf_1-1593757201231.png

 

it download type is FILE, which is not valid to open in any format. I tried to rename it with extension, but still that doesn't work for me. 

 

saadashraf_2-1593757386641.png

 

3 REPLIES 3
Highlighted
Community Champion
Community Champion

Re: While downloading Power BI report, it downloads an inappropriate file which has a type "Fi

did you look inside it? Does it look like a ZIP file?

Highlighted
Frequent Visitor

Re: While downloading Power BI report, it downloads an inappropriate file which has a type "Fi

No, it is not a ZIP file. When i open it in pdf, image viewer, paint, browser, it throughs an error like this.

saadashraf_0-1593936399917.png

 

 secondly, when i am trying to continue with this code:

 

saadashraf_1-1593936552601.png

 

it returns me this JSON in browser, instead of downloading the file:

 

{"result":{"fileStream":{"needsDrain":true,"canRead":true,"canWrite":false,"canSeek":false

Highlighted
Community Champion
Community Champion

Re: While downloading Power BI report, it downloads an inappropriate file which has a type "Fi

Are you sure you are following all the required steps in the export process?

Helpful resources

Announcements
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

Community Blog

Community Blog

Visit our Community Blog for articles, guides, and information created by fellow community members.

Upcoming Events

Upcoming Events

Wondering what events you could join or have an event to promote yourself? Check out our Upcoming Events.

Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

We are thrilled to announce we will begin running a monthly webinar series named Power BI Dev Camp.