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."

K_Jaiswal
Wed, 24 Aug 2022 14:33:38 +0000
Activities

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 posts - 2 participants