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?

Hi @JOSE_ENRIQUE_GARCIA_PEREZ ,

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

@JOSE_ENRIQUE_GARCIA_PEREZ

You have to initialize the datatble using New DataTable

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

Cheers

Hi @Anil_G

It should be

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

Regards

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

1 Like