Unable to add all data in csv file

hi all,

i want to add 3 iteration data into CVS file…

step 1: creating data table using build data table

step 2 : add all the steps of sequence

step 3 : add data row

step 4 : write csv
used do while to iterate
but in csv file only last data is found after all iteration

1 Like

Please try using https://docs.uipath.com/activities/docs/append-csv-file

Hi @Abhinavpandey,

1.Where are you keeping the build data table?

2.Keep the build data table outside the do while loop .


1 Like


this steps decides the value for this
keep the ADD DATAROW activity inside the loop so that it will add data row to the datatable for each iteration, which can be within a FOR EACH or WHILE LOOP
**But keep the add datarow activity inside the loop **
as you would have kept the add datarow atlast it will add the value that is assigned at last in the loop

so that should be the problem
kindly try this and let know for any queries or clarification
Cheers @Abhinavpandey

1 Like

Working fine now?

no bro @Vashisht

still stuck

thnaks @Vashisht and @Palaniyappan.

i kept build dtata table inside the do while oop and there were few more mistakes.

now it is working fine.

thanks to you guyz.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.