the assignment with assign activity looks correct
we need to check with the datatable variable used in it
because this error states that the activity having this error has a variable with null values in it
that is the datatable variable GuestDatatable has no value in it
before to this assign activity use a writeline activity and mention like this String.IsNullOrEmpty(GuestDatatable.Columns(“First Name”).ColumnName.ToString).ToString
if it display as TRUE in the output panel then there is no data or even a column schema structure in that variable
make sure that the variable temp is with global scope in the variable panel
kindly check that once and let know pls
cheers @prashantP
This means that there is no column with name “First Name” in the returned datatable.
I can’t verify now but I recall that column names with space are not handled properly by UiPath.Database.Activities - only the first word is assigned as column name in resulting datatable.
To verify try the following
GuestDatatable.Columns(“First”).ColumnName