Download Email by ID elapse time

Hello everyone,

i encountered a problem in my automation and i need idea to prevent this from happening again.

my automation tried to download the original email from outlook but it took longer than 300 seconds or 5minutes, thus resulting to faulted job. i think this is because the internet connection was slow during the downloading of file, or there was a disconnection to the integration service or other things that is happening that i don’t know, out of 100+ emails this is the only time the download activity failed to download the file.

how can i prevent this from happening in the future.

Hi @JomarieBancolo
Welcome to the community

This looks like a transient network / Outlook service issue since it occurred only once.
To avoid future job failures, wrap the email download activity in a Retry Scope and increase TimeoutMS (e.g., 600000). Also place it inside Try/Catch so one failed email does not fault the entire job. In Catch, log the email and continue processing. Optionally, store failed email IDs for reprocessing later. These practices make the automation resilient against temporary connectivity or Integration Service interruptions.

If it’s helpful please mark as solution
Thanks

1 Like

Hi @JomarieBancolo

Use Retry Scope / Try-Catch around the download, increase timeout, and skip or retry failed emails instead of failing the job. This handles slow or unstable network issues safely.

I Recommended use this one :

For Each Mail
→ Try
→ Download original email
→ Catch
→ Log error + retry / mark failed
→ Continue

If it’s helpful please mark as solution so other can use.

1 Like

@JomarieBancolo

Use Timeout Scope activity for this. Put your downloading logic inside it and set the desired timeout you want bot to stop downloading the email.

1 Like

@JomarieBancolo

Welcome to the community

you can as a first resort if there is a timeout in actiivty increase it

if not use time scope activity(but rarely might work)

Use retry scope(this works if its due to slowness). Try giving atleast 1 minute gap between retries

cheers

I would suggest you to wrap this in retry scope activity. Decide no of retries . Give atleast 1-2 mins between retries.

Also you can increase timeout in email activity.