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 / CSV Imports differentl...
Power Automate
Unanswered

CSV Imports differently if I download it first?

(0) ShareShare
ReportReport
Posted on by 15

Running into a weird problem I can't figure out. Each day I have a CSV Report that is emailed from Salesforce. I have a PowerAutomate flow that parses it, and imports it into a list. The 3rd column is a date, ie 01/12/2024.. When the flow runs, it is putting /r on the end of the date (it's the last column).  I have this to remove it:  

 

replace(outputs('splitByComma')?[3], '\\r', '')
 
Now, the weird part is that if I log into Salesforce, export the same report as a CSV File and download it, Send myself an email with it as an attachment the flow runs, and imports it correctly.. I am not making any edits to the CSV file, or even opening it.  I am not sure why it's not importing it correctly if it's emailed from Salesforce, but is when I export it and email it to myself.  


 
Categories:
  • Matthy79 Profile Picture
    4,188 Super User 2024 Season 1 on at

    Have you checked the special characters at the end of the line in both cases. What do you use to split the lines. Maybe sometimes there is CR and LF at the end and sometimes not.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 298 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 289

#3
Henil Profile Picture

Henil 125

Last 30 days Overall leaderboard