I built this flow. The creation of file works well. My problem is the email sends a corrupted attachment.
Am I supposed to use another get file after the file creation? Any other ideas?
Thanks
@mcasey I think you need to run a Get File content and a Create File action again since you are running a script after you've created the file initially.
You'll also want to ensure you are including an extension in the File Name field.
For additional troubleshooting, check the created Excel file after it's initially created and after you've run the script to ensure there isn't any issues when creating the file from Power Automate. If you are still running into issues—try switching to the Classic Designer.. the New Designer still has a few bugs.
For more flow troubleshooting tips—check out This YT Tutorial: 5 Power Automate Troubleshooting FAQs and Helpful Tips for Creating Better Flows
In this tutorial I cover:
✅ How to troubleshoot a false Condition action result
✅ How to get dynamic content when it isn’t selectable from the list of dynamic content
✅ How to troubleshoot an Apply to Each action that isn’t looping through
✅ How to troubleshoot a skipped Apply to Each action
✅ How to troubleshoot a Filter Query
✅ How to use a SharePoint yes/no column in a Filter Query
✅ How to use Compose actions to troubleshoot a Power Automate flow
✅ How to troubleshoot multiple emails being sent
✅ How to troubleshoot multiple Teams messages being sent
Tip: Rename your actions to keep your flow organized! This way you can easily tell which dynamic content belongs to which action when you are using it in your flow.
Hope this helps!
WarrenBelz
146,596
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,928
Most Valuable Professional