Corrupted excel file

Hi,  I'm trying to download an Excel sheet that I have fetched from an API. But when I'm downloading that file using download activity, I get a corrupted Excel sheet. I'm using an extension .xlsx but still I'm getting corrupted files. /file?guid=19703248378758161
1 answers

Can you please put error stack.. by seeing the microflow I cannot make out the issue with file.. however there are lot of corrections which can be done 

1. Why commit and change again ?? Can that not be a single activity. 

2. Refresh object is not needed for both 

3. Add error handler for rest service