For Each Email: Cannot access a disposed object. Object name: 'Google.Apis.Http.ConfigurableHttpClient'

Hi all. I have a process in which I use the activity Use Gmail and internally For Each Mail. I have a workflow in which I identify the message by a certain subject and extract the data from that email. Here everything works ok. I have another workflow in which I want to archive (move to another folder) the current message after it has been processed. Here, however, the error appears in the subject of the topic.

Please help me to solve this problem. Thank you in advance!

1 Like

@mihai.cojocaru
The error “Cannot access a disposed object. Object name: ‘Google.Apis.Http.ConfigurableHttpClient’” typically occurs when you try to access an object that has already been disposed of or closed.

Thanks for the reply. How can I solve this problem?

@mihai.cojocaru Can you check email is present or not in your folder which you want to move.

The email remained in the Inbox. He did not move it to the Archive folder

Hi both, I’m also having issues with Gmail activities, but I think this is due to the last UiPath updates.

I created an automation that was having a loop to send mails for each sheet of an excel file (36 mails). This was perfectly working but, after the last UiPath updates I modified little details in excel to improve the process (border lines
things not linked to the mails), since this modification (where I was forced to update the dependencies packages in StudioX, if not, activities were no more supported and not available to me modified) we are having diferent errors with the Gmail activities:

My colleguaes from finances team (not Orchestrator admins) are finding this error (tested with to ocolleagues):

And from my side (I’m Orchestrator admin, I don’t know if it is the reason to have different errors), I’m having this:

I don’t understand what is hapening and why, but I think this is linked to the UiPath updates
something strange is hapening with dependencies packages, not just with gmail, for example, when I download an automation from Orchestrator to modify it, it always loose the dependecies “UiPath.UI
” and the “UiPath.System.Activities” that are replaces by their runtime versions and don’t ables to modify some activities in the workflow
I think thath the issues with Gmail are also linked to something strabge that is happening with the dependencies packages since the last updates.

Exactly the same automation just replacing the “Gmail” activity by an “outlook 365” one using an outlook account works perfectly. But finances department has not yet migrated to office and they need still use Gmail until december at least, and this process is releasing them 8h job/month. We need that it works correctly with gmail.