web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Suggested Answer

Using Power Automate to save email csv attachment to Onedrive, but the output file is unreadable

(3) ShareShare
ReportReport
Posted on by 6
Using Power Automate to save email csv attachment into Onedrive, however it change the original csv file format/contents. 
How to overcome this? 
Categories:
I have the same question (0)
  • Suggested answer
    Holly Huffman Profile Picture
    6,530 Super User 2025 Season 2 on at
    Good morning, afternoon, or evening depending on your location!
     
    This issue often occurs due to how Power Automate processes file content when saving attachments. Here are some steps to resolve it:
    Possible Causes & Solutions
    1. Ensure Proper File Content Handling:
      • When using the "Get Attachment" action, ensure that the File Content is correctly passed to the "Create File" action in OneDrive.
      • Avoid using expressions that modify the content unintentionally.
    2. Check File Encoding:
      • Power Automate may alter the encoding of the CSV file. Try explicitly setting the encoding to UTF-8 when saving the file.
      • If the file appears unreadable, open it in Notepad and check if there are unexpected characters.
    3. Verify File Extension:
      • Ensure that the file is saved with the correct .csv extension.
      • If Power Automate is saving it without an extension, manually append .csv in the "Create File" action.
    4. Use "Convert File" Action:
      • If the format is being altered, try using the "Convert File" action before saving it to OneDrive.
    5. Test with Different Storage Locations:
      • Try saving the file to SharePoint or another cloud storage to see if the issue persists.
     
    Hope this is helpful :)

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Siv Sagar Profile Picture

Siv Sagar 93 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 76

#3
Martin Dráb Profile Picture

Martin Dráb 64 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans