where i am building a datatable (Col1 & Col2) after that in for each adding item to collection with 2 different list but finally when i am adding the data to row {old file name , new file name} eventually writing to excel file with write range activity
Issue facing - bot writing the output in column1 only instead of writing column 2 also refer the screenshot below :
Any solution on this , Thanks in advance !! cheers…
johnfelix
(John Felix Yesuraj)
October 5, 2022, 3:09am
2
Hi @mittal.abhishek
Could you please share your screenshot or code of for each loop.
Emira
(Emira Gasmi)
October 5, 2022, 6:47pm
6
Hi
Can you share the directory of the project?
Packages are missing and we are unable to open the xaml.
Hello @mittal.abhishek
You are writing both the values on a same Index (0), try changing it.
Please find the image for your ref, I’ve added Empty String for Previous File name in List2 and Empty String for NewFileName in List1
try like this and let us know
Hey It’s writing on 2 column but starting from B10 cell like below
It should write from B2 column
johnfelix
(John Felix Yesuraj)
October 7, 2022, 6:44am
10
Hi @mittal.abhishek
Please replace the Add Data Row activity in second for each with Assign activity like below.
Create an Index variable in second For Each activity property like below
Note:
Add Data Row activity always add value at the end.
To update the value in existing row we need to use assign activity.
OutputDt.Rows(indx)(1)
(Indx) variable represents the row position
(1) Represent column position
Thanks
John
1 Like
Thanks John Perfect finally got the output as expected…
Cheers !!
system
(system)
Closed
October 11, 2022, 7:59am
12
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.