Do you know how to compile all data from two data tables into a new data table with Add data row activity? Or is there any other method?
I could not use join data table activity since there is no condition to join those data tables. Copy() function will not working for more than one data tables.
- Build Data Table (to create your new data table)
- For Each Row (in DataTable1)
- Add Data Row (to add the row from DataTable1 to the new data table)
- For Each Row (in DataTable2)
- Add Data Row (to add the row from DataTable2 to the new data table)
The result is strange since the total of merged data row should be 35
(dtA row = 31, dtB row = 4).
However, the final result in the data table destination is total data row = 66.
I tried that but I got an error message during execution about “data row is already belong to another data table” when I use for each currentRow in add data row activity’s Data Row property.
Yes, I have. However, the result of total data row in destination table is double. The total of merged data rows should be 35 but the result is 66 total data rows. I also replied the detail above.