cancel
Showing results for 
Search instead for 
Did you mean: 

MS Outlook Email VBO not returning all Emails

​​Hi,

I'm using "Get Received Items (basic)" action of the MS Outlook Email VBO to retrieve Emails from the Inbox of my default profile (Outlook client is not running at the time). It seems that it only returnes the Emails which have been in the Inbox the last time the client was running.
I've made several tests now and waited up to 10 mins after sending (from another machine) an Email to my account before running the "Get Received Items (basic)" action (only using one filter to return unread emails only). I'm never getting the new Emails...

By the way: if I do not set any filter (so if I wanted to get all Emails in my Inbox - and I have quite a few in there...) I'm getting following exception:
"Internal : Could not execute code stage because exception thrown by code stage: Object variable or With block variable not set."
Seems like the MS Outlook Email VBO can't handle too many emails?

But the problem with the latest Emails not being synchronized when the Outlook client is not running is more important for me.

Any ideas?

------------------------------
Cheers Astrid
------------------------------
Cheers [FirstName]
3 REPLIES 3

jegendra
Staff
Staff
Hi Astrid,

First of all, to work with Get Received Items (Basic) effectively, at least you must assign an input value to one of the Input parameters.
For instance, you could create a DateTime DataItem.
20411.png

Assign the current date and time using now() function within a calculation stage.
20412.png

Assign the predefined DateTime DataItem to Received Latest Input parameter of Get Received Items (Basic).
20413.png

20414.png


------------------------------
Jega Avinasinathan
Customer Support Engineer
Blue Prism
------------------------------
Jega Avinasinathan Customer Support Engineer Blue Prism

Hi Jegendra,

many thanks for your feedback.
Sure, we'd usually probably pass certain filter parameters which would limit the result set.
However, it doens't say anywhere that at least one filter parameter is required.
And it could still return more results than Blue Prism can handle. 
Would just be great if Blue Prism wouldn't just freeze then...

Any idea regarding the other issue with Emails not being synchronized from the exchange server?
Disabling Cached Exchange Mode is prevented by policy in our company, but I hope I'll get an exception approval so that I can do some tests whether that would really fix the problem.



------------------------------
Cheers Astrid
------------------------------
Cheers [FirstName]

Hi Astrid,

We had a similar issue using MapiEx in ver 6.2, before the Outlook VBO​ was introduced in later versions.

The fix we used was just to open outlook at the beginning of the process, wait for 10 seconds and then shut it down and continue with the main process.

It isn't perfect, but it removed the requirement for our DEVs to trouble shooting the issue and getting to grips with MS Exchange servers and other back end processes.

This resolved the issue quickly, easily and took a Dev ~15 minutes to implement.

If you come up with a real solution I'll be monitoring the thread to see if anyone else comes up with anything.

Kind regards,
Ben



------------------------------
Ben Kirimlidis
RPA Developer and Data Analyst
PTSB
Europe/London
------------------------------