Hi, and welcome! Can you share the specific code you’re using to create this excel file, or share a clone link to an app demonstrating this code? For tips on how to do this: How to ask a good question
Here’s the docs on the server module filesystem: https://anvil.works/docs/media#files-in-server-modules