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 / Delete the first 2 row...
Power Automate
Unanswered

Delete the first 2 rows of a .csv file

(0) ShareShare
ReportReport
Posted on by 170

Hello, i have in sharepoint a .csv file which have two empty Rows in first, i want to delete this Rows with Power Automate, how can i do that?

 

Thank you

Categories:
I have the same question (0)
  • v-jefferni Profile Picture
    on at

    Hi @ThomasH ,

     

    Could you please first parse the csv file in Power Automate flow and share the result with a screenshot, telling us what it looks like?

     

    If you can have the csv table converted to an array in the flow, then you can simply filter this array with the condition that a column is not blank and then get the entries that are not blank.

     

    Best regards,

  • ThomasH Profile Picture
    170 on at

    I shout create a Connection, what i have to do on this page?

    ThomasH_0-1715171493377.png

     

  • ThomasH Profile Picture
    170 on at

    Hi @v-jefferni with whitch Action i can parse the .csv in Sharepoint?

  • ThomasH Profile Picture
    170 on at

    Hi @AlexEncodian , how i have to "create File" after "Delete Rows"?

    ThomasH_0-1715586219526.png

     

    I tried this way

     

    ThomasH_1-1715586377468.png

     

    ThomasH_2-1715586396583.png

     

    ThomasH_3-1715586454426.png

    So it dosn't work.

     

    Thank you

     

     

     

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @ThomasH 

     

    Which action is failing and what is the error message

  • ThomasH Profile Picture
    170 on at

    @AlexEncodian Hi, my Problem is, i wan't to have the Data in Columns, when i use a .txt as export and convert this with encodian to a .csv in the last Columns i put me la lot of commas.

     

    ThomasH_0-1716270938147.png

     

    Whe i import a .csv an delete the first t rows and save it as. csv, then i have no Columns, the content is only in the firts column.

     

    ThomasH_1-1716271034119.png

     

  • ThomasH Profile Picture
    170 on at

    @AlexEncodian  

    Hello, sorry for the confusion. I tried a lot to solve the problem, including using the source file as .txt or .xlsx. If I have an .xlsx as the source file where I want to delete the first two lines, it now works if I solve it like in the screenshot.

    ThomasH_0-1716475908355.png

     

    However, it is then an .xlsx file and I need it as a .csv, which I then tried to achieve with the Encodian Excel Converter by attaching it to the flow as shown in the picture, but it works Flow then runs infinitely and doesn't stop with an error.

     

    ThomasH_1-1716477014823.png

    ThomasH_2-1716477254331.png

    The current request is the .xlsx which I am now attaching here to clean up the top two lines and convert them to .csv, but somehow I can't get it solved. Thanks for the help

     

     The Excel in the appendix is ​​shortened; the original has around 160,000 lines

  • DryMouse555 Profile Picture
    31 on at

    Hi, that solution worked for me. But, in my case, I am getting one empty row at the end of csv file. The row count can be increased in the future and everytime, when I export the csv from the sources, I get this empty line. So, I can't mention the row numbers as they may change in the future.

    Is there a way to remove empty row at the bottom by default?

  • ThomasH Profile Picture
    170 on at

    @AlexEncodian  Hi, you mean this so?

    ThomasH_1-1716530046622.png

     

  • AlexEncodian Profile Picture
    4,409 Moderator on at

    @ThomasH 

     

    In the Convert excel action, looks like you are using a file path. You need to use the filename with the extension only.

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard