web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Create a CSV file with...
Power Automate
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 😞 ?

 

Categories:
I have the same question (0)
  • Hii_iii Profile Picture
    691 on at

    .

  • v-bofeng-msft Profile Picture
    on at

    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

    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

     

     

  • Hii_iii Profile Picture
    691 on at

    @v-bofeng-msft 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 522 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 364 Moderator

#3
abm abm Profile Picture

abm abm 243 Most Valuable Professional

Last 30 days Overall leaderboard