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 / /r/n and /r show in fl...
Power Automate
Unanswered

/r/n and /r show in flow how would I get rid of them.

(0) ShareShare
ReportReport
Posted on by 70

Hi All,

I get this data in that looks like this, (CSV file opened in notepad).

Watkins_6-1719324183699.png

It goes through this flow and removes the header and reorganises the data in a CSV table to how we need it.

Watkins_0-1719477816897.png

Comes out like this, he problem is that after the 0.000 it creates a new line then continues which I don't want happening it needs to all be on the same line.

Watkins_1-1719477883619.png

As it grabs the data in getrowsfromfile it seems okay here and copying it into a notepad shows its okay.

Watkins_2-1719477974400.png

 

Watkins_6-1719478454738.png

Remove header output removes the header.

Watkins_3-1719478149537.png

Below is the input and output for create CSV table the input has \r which creates that new line in the output I don't want that to happen. There is also /r/n in the output but not shown here, so I am wondering why this is getting added maybe its remember there is a new line after the 0.00 in the CSV file and keeping it?

Watkins_4-1719478180272.png

My function for remove header.

replace(outputs('getRowsFromFile'),
'DATE,METER NUMBER,READS,IN_TEMP,OUT_TEMP,INSTANT_VOLUME',''
 
How the CSV table works.
Watkins_0-1719478899254.png

 

Watkins_5-1719478372458.png

 

So I would need this flow to not add the new line after the 0.00 and keep everything on the same line. I have tried grabbing the data in each step and adding a replace to replace any /r/n but as they are only showing on powerautomate this did not work. Any advice or help would be greatly appreciated thanks.

Thanks in advance,
Watkins

Categories:
  • lbendlin Profile Picture
    8,726 Super User 2026 Season 1 on at

    That seems rather involved.  Usually you want to keep the header information in the CSV so you can address the values easier.

     

    Can you please post the sample data in a usable format (not as a screenshot) and indicate the expected outcome?

  • Watkins Profile Picture
    70 on at

    Hi @lbendlin,

    I am removing the headers because in the CSV table it reorganises them and gives new headers, I have this flow working for other data just these few devices sending seem to be different. More so just looking if anyone can spot why it is creating that new line. It could just be the way the data comes in. Here are the input file and output files.

     

    What is expected is that in the output file it should not start a new line after the 0.00 for example it comes out like this, 

    71574699;71574699;2024-06-23 00:00:16;0#;0#;0#;0#;0#;0#;0#;0.000

    ;0;67.200;65.490;10

    Should be 

    71574699;71574699;2024-06-23 00:00:16;0#;0#;0#;0#;0#;0#;0#;0.000;0;67.200;65.490;10

    With everything kept on the same line.

    Thanks,
    Watkins

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 275 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 235

#3
David_MA Profile Picture

David_MA 178 Super User 2026 Season 2

Last 30 days Overall leaderboard