Skip to main content

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?

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. 


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


Reply