Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Automate - Building Flows
Unanswered

Create a CSV file without header

(0) ShareShare
ReportReport
Posted on by 691

I am trying to create a CSV file without a header and then create it in a Sharepoint folder. I retrieve my values from my MySQL database. I would like all the values from my database to be in my CSV file. I don't want to create one CSV file on Sharepoint per line, I want all my lines to be in the same CSV file.

I have this error 😞

Échec de l’enregistrement du flux avec le code « InvalidTemplate » et le message « The template validation failed: 'The inputs of template action 'Créer_un_tableau_CSV' at line '1 and column '30340' is invalid. Action 'Appliquer_à_chacun' must be a parent 'foreach' scope of action 'Créer_un_tableau_CSV' to be referenced by 'repeatItems' or 'items' functions.'. ».

 

 

s44_0-1710953460396.png

 

 

Can you help me please 😞 ?

 

  • Hii_iii Profile Picture
    691 on at
    Re: Create a CSV file without header

    @v-bofeng-msft 

  • Hii_iii Profile Picture
    691 on at
    Re: Create a CSV file without header

    The problem is that it creates one file per line for me. I would like it to create just one file with all the lines from my database inside. I would like to have consecutive lines for all the elements that are in my "valeur_consommation" and "ug" field and consecutive lines for all the elements in my "etiquette_consommation" and 'ug" field

    s44_1-1711027709598.png

     

     

  • v-bofeng-msft Profile Picture
    on at
    Re: Create a CSV file without header

    Hi @s44 ,

     

    To remove the header of the CSV table, you just need to delete the first row of the result returned by 'Create CSV table'. I've made a test for your reference:

    vbofengmsft_0-1710985144915.png

    skip(body('Create_CSV_table'),add(indexOf(body('Create_CSV_table'),decodeUriComponent('%0A')),1))

    Result:

    vbofengmsft_1-1710985179890.png

     

    Best Regards,

    Bof

     

  • Hii_iii Profile Picture
    691 on at
    Re: Create a CSV file without header

    .

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May 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 566 Super User 2025 Season 1

#2
David_MA Profile Picture

David_MA 516 Super User 2025 Season 1

#3
stampcoin Profile Picture

stampcoin 492