For Each Email (outlook activity) not processesing the Unread Emails

Hello guys,

hoping you can help my team on this one,
our automation have a for each email outlook activity and is set to iterate the inbox folder and process the first 5 unread emails,
it’s working just fine in most cases, but we observed that some emails are not being processed,

have you encountered this one and how did you fixed it.
thank you so much for you inputs.

Hi @JomarieBancolo

Just cross check once whether you have unread emails are there not and check all conditions what you are selected all those are satisfying or not.

Happy Automation.

@JomarieBancolo

add breakpoint on for each mail and on immidate panal called outlook mail variable and check the value is null or not?

@JomarieBancolo , Most likely, new emails are arriving in the inbox after the bot has already read the existing emails. In that case, any email received after the bot’s read step will be picked up in the next run.

I am curious why the emails are not being marked as read after processing. Are you planning to move them to another folder, such as a “Processing” or “Processed” folder? If yes, then it is possible the bot is running into an exception while processing or moving the email, and that exception may not be handled properly. Because of that, the email remains in the inbox and may be picked up again in the next run.

Only the latest 5 emails that match the defined conditions will be processed. Please ensure that the latest emails are in an unread state. If any filters are applied, verify that the emails meet the specified criteria, such as subject and Inbox location.