Assign object reference not set to an instance of an object

outlook
activities
studio

#1

Can any one help me with the error
@ddpadil @aksh1yadav

Main has thrown an exception

Source: Assign

Message: Object reference not set to an instance of an object. This error usually occurs when using a variable with no set value (not initialized).

Exception Type: NullReferenceException

project.json (547 Bytes)
rules.xlsx (8.0 KB)
Main.xaml (25.3 KB)


#2

Create the object before using the variable


#3

sry didnt get you
i am a learner
cold you please elobrate


#4

can you send the screenshot of the Exception message and from which activity its throwing exception? @Tanuja


#5

image


#6

image
this part its is showing eror
i have attached main file also can u check whats wrong
thank you


#7

@Tanuja It looks to me like your messages List is null.
Can you check if you entered your mail address in the “Account” Property in the Get Outlook Mail Messages Activity in your Move email Sequence? Your email is blank in the version that I downloaded.


#8

Hi @Tanuja,

In assign activity update this code
mail.From.Address.ToString()

Regards,
Arivu