Question on Object reference not set to an instance of an object

I am creating a rpa for saving all email details of my mail box.
However, the error occur " Object reference not set to an instance of an object" when the program use get outlook mail activity.
I find out that if the mail check sender address , but the sender in email is non visible, then it causes error.

But I use the if activity to catch the error but still not helpful.
Does anyone has solutions?

1 Like

@Emily_Yip Can you send a screenshot of your get outlook mail activity properties ?

Try to print that value which showing error…

Hi @Emily_Yip

I think you are converting value to string that has no value on it.Please use Convert.ToString to handle the exception.

cheers :smiley:

Happy learning :smiley:

1 Like