Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Using Flows
Unanswered

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

(0) ShareShare
ReportReport
Posted on by 64

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

  • Watkins Profile Picture
    64 on at
    Re: /r/n and /r show in flow how would I get rid of them.

    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

  • lbendlin Profile Picture
    8,041 Super User 2025 Season 1 on at
    Re: /r/n and /r show in flow how would I get rid of them.

    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?

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 1

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 1

Featured topics

Restore a deleted flow