cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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

August Community Highlights

Check out a full recap of the month!

Experience what’s next for Power BI

Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.

Users online (614)