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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / saving csv files to a ...
Power Automate
Suggested Answer

saving csv files to a sharepoint library is null

(0) ShareShare
ReportReport
Posted on by 212
 I have build a flow using the template to save new email attachments to a SharePoint document library.  The flow runs successfully when I receive a new email in my box and uploads the file to the document library but when I select the csv file in the document library it is null and file size is 4 bytes.  I have lost the contents of the csv file. Do you know what I am missing.
 
On new email attachment, I have specified the email inbox folder, Include attachments = Yes, Only with attachment = Yes.
Categories:
I have the same question (0)
  • Suggested answer
    SudeepGhatakNZ Profile Picture
    14,396 Most Valuable Professional on at

    Hi there,

    This issue might occur if your email contains any email signatures. To resolve this, modify the File Name property in your Create File action by using dynamic fields. This will prevent the system from mistakenly treating an image file as a CSV.

  • mthiru_0023 Profile Picture
    212 on at
    Thanks Sudeep, I tried that and the csv file is still null.
  • MC-05090511-0 Profile Picture
    2 on at
    Hi,
    I've solved my problem converting from base64 To String before "create file" action.
    My .CSV file didn't came in blank to sharepoint, but came like an encrypted file.
     
     
    add "compose" then use the function "base64ToString" on "Attachment content", example: base64ToString(item()?['contentBytes'])

    use the output on File content on "Create fie"
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 959

#2
Valantis Profile Picture

Valantis 872

#3
Haque Profile Picture

Haque 589

Last 30 days Overall leaderboard