A couple years back, I installed a script called "Monthly Stats for Gmail" from another gmail user. It would give me my own analytics on when I would send, receive, and who I would send and receive email from. I am now getting this error email every day at the same time 1:13AM, seemingly arbitrary time. I have combed thru the Google Apps Scripts documentation as well as the links given in the email. Is there a way to "uninstall" time based triggers when I was not the originator or author? I am fairly frustrated and would appreciate your help. I am getting this error in the form of an email below. Thx.google script error
Related
I have a script running in google sheets that collects data via a Google Form. On form Submit triggers the script to run and create a PDF file which is then sent out as an attachment to a list of emails on my team which is anywhere from 15-30 people. Several of these are sent out per day as progress reports so the whole team can see daily progress.
The script keeps eventually failing and giving an error saying Gmail service is invoked too many times.
I am using GmailApp.sendEmail.
I have looked extensively through the google documentation on limits and quotas, but I cannot seem to understand why it is invoked too many times. It's my understanding that I should be allotted 1500 recipients per day with my business GSuite account.
This account sends through SMTP and also sends an attachment with every email. The script runs several times per day.
I have this email from google.
Your script, Drive Migrator, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.
There are about 200 messages of the format:
Start 1/1/19 4:53 PM
Function processFilesAndFolders
Error Message Authorization is required to perform that action.
Trigger time-based
End 1/1/19 4:53 PM
When i click there i fund there is an empty trigger and no further information.
Project -
Last run -
Deployment -
Event Time-based
Function -
Error rate -
Its very strange given nobody was on the system at this time, and I cannot see any details about the trigger.
How do I see what is happening here? Is someone on my system, trying to move my files around? How is is possible to have a trigger that is void of information like this? It looks somewhat hacky. Can I centrally disable this "drive migrator"?
I found an old question about this: Drive Migrator Fail Message
But, perhaps it does not have enough information to get a proper answer.
I also contacted google support directly, but they said that asking here is the only way to get technical support on this service. I understand this is not the best "stackoverflow type question", but I'm at a loss on where to get further information about this.
The failure notifications likely occur when a Google Script is deleted from your Drive without de-authorization or when the permissions get revoked for some reason.
Go here and you'll find a list of all triggers running under your Google account. Delete the one associated with your Failure emails.
This guide explains how you can unsubscribe from the failure emails and also properly de-authorize the associated script.
When I tried to add a new editor, (only 1) using the following line of code:
myfile.addEditors([emailsAdd[i]]);
I got the error message:
"We're sorry, a server error occurred. Please wait a bit and try
again."
I tried to add the user manually and I came to know that his email address is not associated with a Google acoount.
Are you sure?
You are sending an invitation to xy. Since there is no Google account associated with this email address, anyone holding this invitation will have access without signing in."
However, yesterday I was able to add an email addresses not associated with Google accounts (same snippet, but using another script and another spreadsheet). Both spreadsheets are new spreadsheets, both spreadsheets' access is set to private. Why does it sometimes work to add new users without GA and sometimes it doesn't? Is there a way to control this behaviour?
Thanks,
Andreas
You are adding editors in two different ways, one manually, and one with code. With code, there is no warning if the email address doesn't exist, or the email address is not associated with a Google account.
When adding an editor manually, you will get a warning, BUT you can still add them.
I would be nice if there was a way to determine in code whether the editor email address has a problem or not. You could suggest that as Feature Request in the Apps Script Issue tracker: Apps Script Issue Tracker
When will the script get published in Script Gallery, that I submitted from Google Spreadsheet Script editor?
And at the time of submitting the script, it displayed message "Your project has been sent for approval and we will send you a separate email when it is approved. Your project ID is xxxxxxxxxxxxx. Please reference this ID in any future communications with us. Thank you for using Google Apps Script."
So, with whom shall I communicate regarding it?
Finally my script got published after seven days or so, but I still haven't got any notification regarding it....
So if anyone else has the same question then this answer might help..!
Every morning I get an email from Apps Script saying this:
Summary of failures for Google Apps Script: Not found‏
Your script, Not found, has recently failed to finish successfully. A
summary of the failure(s) is shown below. To configure the triggers
for this script, or change your setting for receiving future failure
notifications, click here.
When I click the link in the email, it tries fetching the triggers but returns another error:
We're sorry, a server error occurred. Please wait a bit and try
again.Dismiss
How do I get rid of these messages?
There is a topic about this problem on the GAS issue tracker. Please star it to promote it to the support.
How do I get rid of these messages?
Now a solution is to filter such messages in your email system or to wait when the GAS teams fixes it.