Skip to main content
Cadet | Tier 2
January 5, 2023

Emails from outlook folder are not processed by BOT

  • January 5, 2023
  • 11 replies
  • 418 views

Bot has been scheduled twice in a day. Emails from shared mailbox are not processed in the first run and in the next run all the emails are processed as expected. Could you please help to resolve this issue?

 

11 replies

Most Valuable Pathfinder
January 5, 2023

Hi @Yazhini 3433 

If you are using Outlook DLL can you add delay so it launches outlook completely and try again? Also confirm are you using DLL or email package for this?

Chand
Cadet | Tier 2
January 5, 2023

Thanks for your response. I am using email package not DLL.

Most Valuable Pathfinder
January 5, 2023

Can you share the error or code screenshot  if possible

 

Chand
Cadet | Tier 2
January 5, 2023

There is no error. It says, BOT completed successfully. In BOT, I am saving the attachment to a local folder from email. This is not happening. I am not sure if the BOT is not reading the email or not saving the attachment. This issue happens only when the BOT is scheduled. When I run the BOT manually, It works fine. 

Most Valuable Pathfinder
January 5, 2023

There is no error. It says, BOT completed successfully. In BOT, I am saving the attachment to a local folder from email. This is not happening. I am not sure if the BOT is not reading the email or not saving the attachment. This issue happens only when the BOT is scheduled. When I run the BOT manually, It works fine. 

Add some delay while saving the attachments and try 

Chand
Cadet | Tier 2
January 5, 2023

Sure, Thanks for your suggestion.

Most Valuable Pathfinder
January 5, 2023

Sure, Thanks for your suggestion.

Welcome

Chand
Padmakumar
Premier Pathfinder | Tier 7
Premier Pathfinder | Tier 7
January 5, 2023

Hi @Yazhini 3433 ,

 

If I may ask, from where your trying to read the mail? Is it from Inbox or from any other Sub folder?

If it is from Inbox, try to put a rule in outlook for moving all the required communications to a sub folder when a new communication arrives. Later, try looping inside that sub folder. If you want, you add an additional logic to move all the communication back to Inbox itself through BOT once the required action is performed.

 

Padmakumar
Cadet | Tier 2
January 5, 2023

I am reading the email from subfolder only. And also I don’t find any issue in the second run for the day, the issue is only in the very first run.

Cadet | Tier 2
May 22, 2023

Hello, has anyone found solution for the above?