gmail-to-google-sheets-script
gmail-to-google-sheets-script copied to clipboard
"Exceeded maximum execution time"
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.
Are you trying to export all your email from your account?
Maybe you should try the Export your data from Gmail it self.
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.