While reading Outlook mail messages, Sender or From showing NULL

While reading outlook mail message, Sender or From value is showing NULL, because of that Bot showing Object Reference Error. Kindly sugges on this.

Error Detail: Assign-MailReciepient: Object reference not set to an instance of an object

Studio Version: 2020.4.1
MS Outlook : 2012
Uipath.Mail.Activities: v.1.4.0 (Deployed verison in Prod)

@anandcse.sd92

Welcome to forums

Object Reference error occurs if you are passing a Null value

  • Check whether you are passing the value in To correctly as below
    image

  • Check if you are passing a variable and it is null

  • If you are passing arguments then check if you are passing correctly

  • Check if you have duplicates with same variable name

  • Also check the scope of the variable

Hope this helps you

Follow Link

Thanks

Maybe confirm your local IT have not blocked access.

Thanks for your suggestion, Getting this error while reading particular persion mail ID

@anandcse.sd92

I didn’t see your error, Can you check again

Thanks

Yeah, Created ticket with IT team.

1 Like

This is the error we recieve while reading mails and getting sender address. “Object reference not set to an instance of an object”. For one specific user in produciton with MS Office 2016, But the same is getting processed in Dev & UAT where MS Office 2010 and 2016 both are installed.

@anandcse.sd92

If you are passing any null value then we will get this Object reference error

Could you check by writing the sender address manually and try to do

Hope this helps you

Thanks

@Srini84 Topic starter wants to READ an email not SEND an email

@anandcse.sd92 Could you please show us how you are trying to retrieve the sender of an email.
It should be something like this “MailMessage.From.Address” or “MailMessage.Sender.Address”

we are trying with MailMessage.From.Address method.

Yes everything is in place, Because its working for all the users except one user.

Hi, Is the issue resolved ? I am also facing the same issue in Prod VM. :frowning:

Hello @hemanth_raj ,

What error are you getting & have you passed all the required parameters for get outlook mail message?