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

Notifications

Announcements

Community site session details

Community site session details

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

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,394 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard