Support > Forums > OpenBots Studio > Get Outlook Emails giving a null reference

Get Outlook Emails giving a null reference

Umaema Ashraf

  • Reporter
  • Calender Icon March 23,2022 at 8:48 PM

Hello,

I am following the video for https://academy.openbots.ai/lessons/stock-price-extraction/ and the loop it's giving an error. 'For Each 'vCurrentEmail' in 'vExtractedEmails', Type: 'RuntimeBinderException', Message:'Cannot perform runtime binding on a null reference'

all variables were created as shown in video tutorial.

Command line 1: Get Outlook Emails - Source Mail Account = "Entered email address linked to outlook" Source Mail Folder Name = "Inbox" Filter - (attempted with filter as specified in video and without) Unread Only = Yes Mark as Read = Yes Output Mailitems list variable = vExtractedEmails

Command line 2: For Each - Input collection = vExtractedEmails Output Collection Item Variable = vCurrentEmail

This forum has 314 topics, 681 replies, and was last updated 15 days ago by Support Agent

Poornima Malviya

  • Participant
  • Calender Icon April 25,2022 at 8:18 AM

Hi UMAASH001,

As per the internal discussion, it was confirmed that the account was non-outlook account and hence the error was showing up.

Thanks.

Umaema Ashraf

  • Participant
  • Calender Icon March 24,2022 at 4:11 PM

I am using the latest version 1.7, it is not extracting emails and storing them. show message command shows "null"

Poornima Malviya

  • Participant
  • Calender Icon March 24,2022 at 6:36 AM

Hi UMAASH001,

Thankyou for reaching out to us. Can you confirm which version of OpenBots Studio you are working and also can you please add show message command with (vExtractedEmails) as value after Get Outlook emails command and if it is able to read the outlook email of the respective subject and gives you a count(number). Can you confirm if the email has been getting stored in the vExtractedEmails.

You are not authorized to reply, please click here to login and add your reply to this topic.