Message: Cannot access a disposed object. Object name: 'Google.Apis.Http.ConfigurableHttpClient'. Exception Type: System.ObjectDisposedException

Hello Everyone,

I am currently attempting to iterate through a dataTable containing employee information. My goal is to send emails to these employees using Integration activities such as “Use Gmail” or “Send Email.”

However, I’ve encountered an issue: the emails are only being sent to the first two employees, after which I consistently encounter the following error:
"
Source: Main Sequence

Message: Cannot access a disposed object.
Object name: ‘Google.Apis.Http.ConfigurableHttpClient’.

Exception Type: System.ObjectDisposedException
"
I have tried multiple solutions to address this problem, but unfortunately, none of them have proven effective so far. Your assistance in resolving this matter would be greatly appreciated.

Thanks in advance

@M.Abd

Try using the loop inside use gmail instead of continuously going in amd out of use gmail scope

Also try keeping gmail separate and use isolated property

Cheers

It’s worked!
Really, thank you so much.

1 Like

I iterated through my data table within the “Use Gmail” Activity ,then i used the Send Email Activity!

@M.Abd

Glad it resolved…

Happy Automation

Please close the thread by marking solution so that others with similar issue can get the solution

Cheers

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.