"message":"For Each Row: Object reference not set to an instance of an object.",

Hi All,

I am getting error
“message”:“For Each Row: Object reference not set to an instance of an object.”,

Hi
The variable passed to FOR EACH ROW activity would be a datatable variable
That variable doesn’t have any value in it, that’s why giving this error
Kindly check that once
To validate that use a WRITELINE activity before to this FOR EACH ROW activity and mention like this
Yourdatatable.Rows.Count.ToString

If that datatable has any value in it this writeline will display with some row count in the output panel
If not it will display as zero

Kindly ensure once that the datatable variable is defined in the variable panel with default value as New System.Data.Datatable

Kindly try this and let know for any queries or clarification
Cheers @Amit2

Thanks Palaniyappan for your quick response, however I have got resolution of my query. I have not mentioned correct data table row thatswhy getting that error.

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.