Irfan_Musa
(Irfan Musa)
September 11, 2024, 3:48am
1
My two variable string type which will grab the data from the excel column below:
ME1_POWER = DT_file5_data(i)(“ME1.POWER”).tostring()
ME2_POWER = DT_file5_data(i)(“ME2.POWER”).tostring()
After that I would do below activities:
Where NewRow is a datarow type
NewRow = DT_File5_Output.NewRow()
But my output only write the ME2_POWER, and I think it overwrite the ME1_POWER.
My desired output is supposed to have both data from both column under the same new column:
I am not sure what I did wrong here, can anyone assist me?
ashokkarale
(Ashok Karale)
September 11, 2024, 3:57am
2
@Irfan_Musa ,
Move this assign activity below Add data row activity and add one more add data row activity below it.
Thanks,
Ashok
Irfan_Musa
(Irfan Musa)
September 11, 2024, 4:03am
3
@ashokkarale its giving me error when I do that
ashokkarale
(Ashok Karale)
September 11, 2024, 4:39am
4
@Irfan_Musa ,
Take the New Row assign activity also below Add data row.
I mean make a copy of the New Row assign activity.
Anil_G
(Anil Gorthi)
September 11, 2024, 5:29am
5
@Irfan_Musa
You have to do the seuqence of new row,assign and add data row twice …once for each value you need
Cheers
Irfan_Musa
(Irfan Musa)
September 11, 2024, 6:05am
6
I did them like this, is this what u meant?
Irfan_Musa
(Irfan Musa)
September 11, 2024, 6:06am
7
I did them like this, is this what u meant?
Irfan_Musa
(Irfan Musa)
September 11, 2024, 6:21am
9
@ashokkarale The output seems different compare to the one I want
My desired output is supposed to have both data from both column under the same new column:
It has to populate the ME1_POWER first in the row than the ME2_POWER
ashokkarale
(Ashok Karale)
September 11, 2024, 8:32am
10
@Irfan_Musa ,
Ohh ok. I think we need to change the approach here.
Use two datatables one for ME1_Power and one for ME2_Power
Once data is filled in these, just before write range, use Merge datatable activity to merge both and then write the final combined output using Write Range
Irfan_Musa
(Irfan Musa)
September 12, 2024, 2:06am
11
How do I create the data table. Currently my ME1_POWER and ME2_POWER are string type