Page 1 of 1

Remove rows from CSV

Posted: Thu Apr 20, 2023 11:08 am
by vernonvd
Hi
I am looking for a way to remove the fist 3 rows from an incoming csv file in Switch, any ideas will be apricated :shock:

Re: Remove rows from CSV

Posted: Thu Apr 20, 2023 12:08 pm
by magnussandstrom
I would try to use Easy Data Transform with Run Command app to do this.

https://forum.easydatatransform.com/t/f ... bers/204/2

Re: Remove rows from CSV

Posted: Fri Apr 21, 2023 7:13 am
by vernonvd
Hi magnussandstrom,

Great! I did read about Easy Data Transform a while back, will look into this.

Thanks.

Re: Remove rows from CSV

Posted: Fri Apr 21, 2023 8:43 am
by magnussandstrom
Please post here if you get stuck on the Run Command "Command" for Easy Data Transform, It was a bit tricky to get it to work initially.

Re: Remove rows from CSV

Posted: Mon Apr 24, 2023 11:16 am
by magnussandstrom
I made a Switch flow and an 'Easy data transform preset' that removes the first 5 rows. You can edit it and change file format to fit your specific case.

Download (avaliable for 2 weeks): https://bit.ly/3Lp8eQ8

Example of Run Command command: "C:\Program Files\EasyDataTransform_1_44_0\EasyDataTransform_1_44_0.exe" "\\URL-to-preset\preset.transform" -file "Input=%%InputFilePath%%" -file "output=%%OutputPath%%\[Job.NameProper].xlsx" -cli

flow.png
flow.png (22.13 KiB) Viewed 5296 times