Hello guys,
The idea of process that I want to build is: Get file via outlook -> save to sharepoint -> while saving change to custom name -> use the file to update Power BI report.
Where I have an issue is in changing files name. If for "File Name" I use "Attachments Name" everything is fine, but when I enter something custom file gets corrupted. The original file's name is "IE96 Stock Report_28Sep2022_000426.xls" when in this part I try to change to save as Excel.xls:

The file gets corrupted:

When I open it the data is all messed up. The idea here why I want to rename it because everyday the name of attachment will change so for power bi to use the correct file I want to have a basic naming for it.