Write Range: Object reference not set to an instance of an object

hello @Gaurav07

check datatable contains data or not.

regards
Ajay

This is basically Null Pointer Exception, you are trying to work with something that is Null

1 Like

Hi,

I got the same issue.
Datatable IS initialized but NULL. I would expect that the write range activity would write nothing to the workbook and all good.
How do we tackle this?

P.S.:The datatable I have to write sometimes contains data and sometimes not, this is when it is null.

Br,
Dimitrios

I faced the same issue. Do we have a solution ?