The CSV file which i have :—
DocId DocData
1 Ab
1 Cd
1 Ef
2 Gh
2 Ij
Then i am reading CSV file through Read CSV activity and creating one DataTable Variable
with name of DT1.After that through For Each Activity, i am printing first column of CSV file
like(1,1,1,2,2).To print this one i passed DT1 variable in for each row activity.When i am writing
row(“DocId”).Tostring in writeline Activity, i am able to print properly,But i don’t want to print in this way.
i want to assign CSV file data to variable,to do this one i am using Assign Activity inside
the body loop of for each row activity.like
Doc=DT1.Rows(IndexCount).ItemArray(0).ToString()
Here Doc is variable with type of string for Assign Activity,with help of this one storing
first column data to Doc variable.Then in writeline Activity,passing Doc variable.After that
when i am running it’s printing (1,1,1,1,1) which is not the expected result like(1,1,1,2,2)
What i need to modify to print proper result like (1,1,1,2,2).Please help me.