Getting error while reading mails having huge data " Get Mail: Only activities which have been requested to cancel can call MarkCanceled. Check ActivityInstance.HasCancelBeenRequested before calling this method."

Hi,

I am using office 365 scope to access outlook, and when I am trying to read mails from my Folder I am getting the below error
“Get Mail: Only activities which have been requested to cancel can call MarkCanceled. Check ActivityInstance.HasCancelBeenRequested before calling this method.”
The mail count is around 600 and each mail has an attachment of around 10-15MB.
I have tried this one get mail with mail count 600 but it stops with above error after around 20-30 min, so I have tried to use get mail in loop with mail count of 50 for each loop but still it gets failed after 3-4 loops.

Thanks in advance.

Regards
Kishan Jaiswal

2 Likes

Hi,

I also have a similar requirement and facing the same issue.
Have you found a solution for this?