Skip to main content
Question

Email error in Loop (Microsoft 365 Outlook)

  • January 29, 2025
  • 2 replies
  • 42 views

Forum|alt.badge.img+1

Hello,

I am sporadically experiencing a strange error in a Loop with Microsoft 365 Outlook iterator in an A360 bot. The loop cycles through unread emails with some specific subjects. Once in a while (say every couple of weeks with several runs on a day) the loop fails with the error message "Unable to fetch a mail with message id ...."

The ... part is always the same gibberish, while the email failing is different. After restarting the bot everything works fine (processes the email which was failing). There is no pattern I could recognize in the behaviour, but probably happens when there are more unread emails in the inbox. There is also no pattern in after how many emails in the loop the failure comes.

Any ideas what is causing it?

2 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 544 replies
  • January 29, 2025

I ran into something similar many years ago. It was something on Microsoft's side. I built an automation that retried up to five times, then it would write the raw data to a file on the bot runner. 

Interestingly, I never hit the fifth retry. The most i ever saw was 3 retries. 

So, break out the Error Handler package and build a loop to retry. 


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 4 replies
  • January 29, 2025

Thank you Aaron, that is what I am also thinking as a workaround in case the cause cannot be found.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings