How to assign an integer value to a datatable cell

I have a temp excel sheet in my project wherein I have to append it with name and rowcount. This excel sheet will be input for another workflow. I am trying to assign name(string) and rowcount(integer) to datatable(tempDT) cells but I always get following error:
error
I am assigning it as below:
assign
I have verified that the values are not null. What am I doing wrong?

1 Like

Can you try in Assign

Datatable.Rows(Index of the row).item(Index of the column)

1 Like

hey Shrutika,
assign str strName = name+rowcount.ToString

use Assign activity, define type as a String and then name+rowcount.ToString

it will work, please let me know

Regards
Aditya

1 Like

I have tried above ways but still the same. I have tried printing name and rowcount, so I am sure these values are not empty. I have tried add row in datatable as follows:

Hi @shrutika

What is the error message you get when you run this project?

Hi @shrutika

Try to print the values in a messagebox before assigning them and check whether there is value. If no problem, Can u share your xaml file.