Sum of two value1

Hello All,
Actually I am trying to calculate the sum of the integer value and want to store same file in columnC, But getting this below error.

Hi @Madhu_Maurya

Please check column name is available in data table and also check any space is there is last

That means coloumnA is not present in DT please check the data in DT in immediate pannel

Hi @Madhu_Maurya

The error was saying there is no column with the name of Column A in the Datatable.
Check the column name of the datatable and give the proper name in the Column field. Or if you know the number of the column you can check the number option and provide the number of the column in the datatable.

Hope it helps!!

Hi @Madhu_Maurya

Try like this

1 Like

Here you can check the number option and give the 0. Which selects the column A in the datatable.
The Column A is 0
The Column B is 1
The Column C is 2 like this.

Hope you understand!! @Madhu_Maurya

Give coloumn name as “A”
and"B" in the next activity also

Hi @Madhu_Maurya

just add the column names like this at the top …Column A and Column B then you can cal it or else you can try this way also … Column A is 0 and Column B is 1
based on that you can cal

And also instead of using the Get Row Item you can simply take the assign activity in the for each row on dt

you can pass like this then it calculate the sum

sum_Variable = cint(CurrentRow(0).ToString)+cint(CurrentRow(1).ToString)

for the reference you can see the screenshot

cheers…!

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