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 / Issue with creating CS...
Power Automate
Answered

Issue with creating CSV from SharePoint list - double input

(0) ShareShare
ReportReport
Posted on by 304

Hello,

maybe someone can help me with my specific case:

I'm trying to set up a flow that takes data from a SharePoint list, creates a CSV file and then updates a file in a SharePoint library.

 

I created it as follows:

1. recurrence as a trigger (1 time per day)

2. get items from SharePoint list

3. create CSV-table

4. two functions to replace the comma seperator with semicolon and to convert the file to UTF-8 with BOM (to show specific characters correctly, e.g. ä,ü,ö,ß)

the functions are:

concat(uriComponentToString('%EF%BB%BF'), body('CSV-Tabelle_erstellen'))
replace(body('CSV-Tabelle_erstellen'), ',', ';')
 

5. update an existing file in a SharePoint library with the output from step 4 as the content.

 

So far it works theoretically, but in the end it somehow puts the data in the file two times, one time seperated with commas in one column and one time as it should. Like it somehow restarts filling in the data.

 

 

I'll show you some screenshots:

 

LisKr_0-1702301094255.png

LisKr_1-1702301738081.png

I hope you can see what I mean. On the upper side it puts everything in one column, down its formatted correctly.

 

Does somebody know a way to fix this?

Thanks in advance

Categories:
  • Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at

    concat(uriComponentToString('%EF%BB%BF'), body('CSV-Tabelle_erstellen'))
    replace(body('CSV-Tabelle_erstellen'), ',', ';')

    So you add body('CSV-Tabelle_erstellen') twice 😉

  • LisKr Profile Picture
    304 on at

    Oh ok, makes sense. But how do I merge it into one function, so that it does both converting and replacing the seperator?

  • LisKr Profile Picture
    304 on at

    I think I found the mistake. Sometimes I just think too complicated🤣

  • Verified answer
    Chriddle Profile Picture
    8,729 Super User 2026 Season 2 on at
    concat(uriComponentToString('%EF%BB%BF'), replace(body('CSV-Tabelle_erstellen'), ',', ';'))
    
  • LisKr Profile Picture
    304 on at

    Thank you, it worked perfectly!

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
Mohsin Ali Profile Picture

Mohsin Ali 426

#2
11manish Profile Picture

11manish 349 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 308

Last 30 days Overall leaderboard