How can i add a new DataRow?

Hi i’m trying to add a new row but i’m getting the error “Assign Crea un row: Object reference not set to an instance of an object.”

What i’m Doing wrong?


What does newDatatable contain ? Was it initialised or was it build using a Build Datatable activity ?


You have to initialize the datatble using New DataTable

And to add a row you can use add datarow. With array row as {}


Hi @Anil_G

It should be

make sure that yourDTVar is initialize, if not then initialize your dt like
New DataTable()


Ty all! i wasn’t using the build data table activity.

1 Like