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 / Help Needed: Flow to T...
Power Automate
Unanswered

Help Needed: Flow to Transfer CSV File from Local to OneDrive Adding a Blank Record

(0) ShareShare
ReportReport
Posted on by 4

Hello Power Automate Community,

I hope someone can help me with an issue I'm encountering in my flow. I've created a flow to transfer a CSV file from my local system to OneDrive, but every time the flow runs, it adds a blank record to the CSV file in OneDrive. Below are the details of my flow:

 

Flow Steps:

  1. Trigger: When a file is added or modified (properties only) (File System)
  2. Action: Get File Content
  3. Action: Create File (OneDrive for Business)

The flow is supposed to simply copy the CSV file from my local system to OneDrive without any modifications. However, the resulting CSV file in OneDrive ends up with an additional blank line at the end of the file.

 

Example Flow Configuration:

  • Trigger: When a file is added or modified (properties only) (File System)

    • Configuration: Monitor a specific local folder
  • Action: Get File Content

    • Configuration: Get the content of the new or modified file
  • Action: Create File (OneDrive for Business)

    • Configuration: Create the file in a specific OneDrive folder
    • File Content: Content from "Get File Content" action

Despite the straightforward setup, the issue persists, and a blank record is always added to the CSV file.

lucky1504_0-1718822465964.pnglucky1504_1-1718822514637.png

 

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @lucky1504 ,

     

    You can try and use expressions to remove the space from file content:

    vjefferni_0-1718878735703.png

     

    Best regards,

  • Lucky1504 Profile Picture
    4 on at

    thank you for your response but when i using above method it showing error like that

    lucky1504_0-1718968994991.png

     

  • Lucky1504 Profile Picture
    4 on at

    would you please share me full flow 

     

  • v-jefferni Profile Picture
    on at

    Hi @lucky1504 ,

     

    The error was saying that the input parameter of base64ToString function is blank. What's the setting in the Compose action? In run history, can you find files output from Get file content action? I don't have a full flow because I don't have a gateway in virtual machine.

     

    Best regards,

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