First run sequence

Okay…In your automation process, you are reading each email and getting the required data.

So I hope you are trying to Read only the unread emails from the mail folder. In case if a system exception occurs during processing of email, then as per Reframework it will reinitialize the applications and then read the unread emails again. So in this approach, automation will not process the completed transactions.(emails)

Thanks