gmail-to-google-sheets-script icon indicating copy to clipboard operation
gmail-to-google-sheets-script copied to clipboard

"Exceeded maximum execution time"

Open kupietools opened this issue 1 year ago • 2 comments

This code can only extract a minimum number of emails before hitting Google's inflexible code execution time limit. (5 min for free accounts, 30 min for paid Google Workspace, or whatever they're calling it now, subscribers.) I can't figure out how to get it to store its progress to make it resumable. Users should expect to expect their emails in small batches if they have a lot of them.

UPDATE: This is really not usable for large email accounts. I just spent several hours re-running the script, and got hit with "Exception: Service invoked too many times for one day: premium gmail". It's going to take me days to get my emails exported. That's not the fault of this script's developer, it's Google being unhelpful, but it's just a fact of trying to use this.

kupietools avatar Sep 28 '23 19:09 kupietools

Are you trying to export all your email from your account?

Maybe you should try the Export your data from Gmail it self.

TiagoGouvea avatar Oct 21 '23 12:10 TiagoGouvea

Good thought! I'll try that route for old emails, I'm sure it will be more efficient. I will let this script only for a smaller scope of recent emails.

jaltagracia avatar Nov 07 '23 12:11 jaltagracia