Error in add data row output

hi, i wish to select 5 specific columns from my workingsheet to paste into another excel, im trying to do so by getting the value of the 5 columns and saving into 5 variables, them builidng a empty datatable with the headers, then adding data row to the new data table, but this error pops up.


my scope for all variables is the largest, which is the whole project. anyone knows how to solve this error?

Hi @Pyx

Please give a try with

New Object(){yourvariable1, yourvariable2, etc...}

image

Regards

Hi @Pyx -

First, you define the variables, partnumber, Qty etc in the variables panel. Now to go ArrayRow field of Add Data Row activity, use your variables in the below format

{partnumber, partdescription,Qty,materialPrice}

Picture1

hi i tried, but the output is “TableName” instead of the values… can u explain what the suggested formula is doing?

hi, its throwing error

@Pyx - Can you confirm all those variable types are string or no

not all are string, i used .tostring to convert, but the output is wrong

image

this is the output… in my output worksheet, it is blank

What do you mean with “output”?, add data row will add the values in the order you are adding your values

New Object(){yourvariable1, yourvariable2, etc...}

you need to replace your own variables for “yourvariable1” etc… Also add the datatable you want to add those values, you also need to make sure that the number of values that you are adding, could not be more than the columns of your datatable

Regards!