Hi Power Community!
I have a flow which takes an email attachment (.XLSX) and saves it to a SharePoint folder and grabs some metadata. I then have a condition which checks that the file is indeed the correct format, and if so, run an Office Script that functions normally when run manually. However, when running the Script via the flow, I receive a BadRequest error:
"message": "The file format is not recognized. Please check that the selected workbook is valid.
I know it's valid because I can open the file manually both with Excel Business and the standalone app, and the condition returns "true" for verifying the file type: "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
I felt that it might be too soon after file creation and that the server might need time to "load" the file so to speak, so I added a two-minute delay before the script runs, with no change in error message. Please tell me what information I need to provide for troubleshooting. Any ideas would be greatly appreciated.