cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper I
Helper I

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
Super User V
Super User V

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
Helper I
Helper I

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
Super User V
Super User V

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
Upcoming Events

Upcoming Events

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

Upcoming Events

Community Summit North America – Join Online!

Join this community-driven Power Platform digital event for unbiased support and problem-solving.

Community Blog

Community Blog

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

Top Solution Authors