Summary of failures for Google Apps Script: Not found - google-apps-script

I have been receiving the following email since Sept 1 .
Prior to that I had set up Gmail Meter in Google Docs/Drive but deleted the spreadsheet.
How can I stop receiving the emails .
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.
Details:
Start Function Error Message Trigger End
9/3/12 10:21 PM activityReport We're sorry, a server error occurred. Please wait a bit and try again. time-based 9/3/12 10:21 PM
Sincerely,
Google Apps Script

Here is a solution that helped me:
Go to script.google.com. Go to "Resource" -> "All your triggers".
A rename dialogue should pop up prompting you to save this fake script. Click Ok.
Try to find the trigger that's sending the email and delete it.
Now all your triggers should appear - even for documents that you've already deleted from Google Docs/Drive.
Good luck!

There is probably a trigger that is still in your trigger list, to remove it simply open any script in the script editor and go to /ressources/all your triggers/ and delete it.

Related

Getting "Google Apps Script" "The script doesn't have permission to perform that action." randomly

I have a script that runs every 5 minutes on Google Apps Script and sometimes (once a month), I receive an email with:
Your script, xxx, 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.
Start Function Error Message Trigger End
8/9/18 7:32 PM xxx The script doesn't have permission to perform that action. Required permission: (https://www.googleapis.com/auth/gmail.readonly || https://www.googleapis.com/auth/gmail.addons.current.message.readonly || https://www.googleapis.com/auth/gmail.addons.current.message.action || https://www.googleapis.com/auth/gmail.modify || https://mail.google.com/) (line 17, file "Code") time-based 8/9/18 7:33 PM
How come it complains only randomly. Rest of the time works just fine.
You may check the workaround given in this post.
Go to script.google.com. Go to "Resource" -> "All your triggers".
A rename dialogue should pop up prompting you to save this fake
script. Click Ok.
Try to find the trigger that's sending the email and delete it.
Now all your triggers should appear - even for documents that you've
already deleted from Google Docs/Drive.
There may be a trigger that is still in your trigger list. To remove it, simply open any script in the script editor and go to /resources/all your triggers/ and delete it.

Google App Scripts Error Notification on Non-Existent Script

How do I turn off alerts that I keep getting for a script that doesn't exist anymore? I created a google apps script to monitor a gmail account, but it didn't work right and I deleted the script. I currently have zero scripts associates with my account, but I still get this email every day:
Your script, Gmail Meter, 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.
Details:
Start Function Error Message Trigger End
1/28/15 1:16 AM activityReport Authorization is required to perform that action. time-based 1/28/15 1:16 AM
Sincerely,
Google Apps Script
There's a link to change seettings, but when I click the link I get a "Forbidden - Error 403" page (probably because the script isn't there anymore). It's super annoying anyone know of a way to turn of the alert that is causing this message?
I found this worked after getting script errors caused by 'Gmail Meter' which is an app I installed from the Chrome Web Store.
Go to script.google.com . If you were like me and have never been here before click the blue "Start Scripting" button.
Go to "Edit" menu -> "All your triggers".
A dialogue should pop up prompting you to save the current script. Rename to Temp and Click Ok.
Try to find the trigger that's sending the email and delete it. Or if you are like me, just delete whatever is there (which was only one line) by clicking the small gray 'x' at the start of the line.
Now it should state "No triggers set up. Click here to add one now."
Hope this helped.
This is interesting, it sounds like the Trigger is still running despite the script being removed.
Try creating an empty script, then select "All your triggers" from the "Edit" menu. You will be prompted to give your empty script a name, so call it "temp" or something along those lines.
Once the "All your triggers" window opens, hopefully you will see the trigger that's generating the error and be able to delete it by clicking the X.
Once finished you can delete your temp script.

I keep receiving "Summary of failures for Google Apps Script: Script" error message even after I deleted all script for my google forms

I recently attempted to use script in GoogleForms to have all results emailed to my account and it didn't work and sent me error emails constantly. So I deleted all script, created new spreadsheets for all GoogleForms I'd created, and I am STILL receiving these error emails...
Looks like this:
**Your script, Script, 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.
Summary:
Error Message Count
No item with the given ID could be found, or you do not have permission to access it. (line 20, file "Code") 24
Details:
Start Function Error Message Trigger End
5/7/13 9:45 PM sendFormByEmail No item with the given ID could be found, or you do not have permission to access it. (line 20, file "Code") time-based 5/7/13 9:45 PM**
I've checked in the script editor and such to see if there was anything, but there is nothing. I am really frustrated as this is a work account and I receive tons of these emails.
I'd appreciate any and all help!
Did you try "Resources / All your triggers" inside the editor? Your unwanted triggers might be visible there, but maybe not if they're deleted. If your scripts are still in your trash, you can try restoring them and then deleting the triggers. Beyond that, this is a long-known and still unaddressed issue. (Sorry, I'm not about to experiment with it myself - I don't want the headache if that goes badly.)
Issue 143: Spreadsheets with time triggered scripts should no longer trigger when spreadsheet is deleted
In the spreadsheet, just go to the Tools> Script Editor.
Then the new window should open and in that go to the Edit> All your Triggers.
Then click on the notifications link, and remove your email id.
Hope this helps someone.

Receiving apps script notifications about 1 per minute

I am receiving an apps script notification email about 1 per minute. I don't think I have any scripts running. How do I make it stop?
Your script, Unsaved script, 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.
Details:
Start Function Error Message Trigger End
6/21/12 1:15 PM myFunction We're sorry, a server error occurred. Please wait a bit and try again. time-based 6/21/12 1:15 PM
Sincerely,
Google Apps Script
You should check if you have some triggers that are running...
to check that : open or create a spreadsheet go to >tools>script editor > EDIT > all your triggers and see if something is firing every minute.
and... delete it with the x
I found I created a script and forgot about it. Kept getting many notifications. In my case, it was a script in Google Drive. Try this:
Open Google Drive
In search bar type: 'app:"Google Apps Script"'
This should list all apps. find the one with the same name as the notification and edit/disable.
Note, that you may also have a script bound to a google document a.k.a. Addon (https://developers.google.com/apps-script/guides/bound) which can have a trigger built in.
I had to find all spreadsheets and look under Tools (as above) to find the culprit. I could not find a way to search for sheets with scripts.
Go to google.com, then click your account picture in the top-right corner of the screen. Next, click Account, then Security, then Review permissions. Click Revoke Access next to the script whose authorization you want to revoke.

Deleted script, no triggers, still getting emails

I deleted a google apps script from docs (Gmail Snooze), but I keep getting a message every day:
Start Function Error Message Trigger
6/9/12 12:49 AM myFunction We're sorry, a server error time-based
occurred. Please wait a
bit and try again.
I've already tried creating a new script, going to Resources > All Your Triggers, and nothing is there.
Is there a better way to get rid of these error messages than creating a new filter in gmail to auto delete them?
Have you also tried deleting the spreadsheet from the Trash in Google Docs?
There have been some reported problems around deleting triggers. You may want to add a comment on this open issue.
This worked for me!
Open a spreadsheet then go to tools-spreadsheet editor, then on the
editor window go to Resources->All your triggers... and see if the
trigger is still listed there. If so, delete it.
Source: How to delete a google apps script service
There might be an update to the interface. Triggers are now accessible trough different menu.
Open script.google.com and open any project or create a new one if you don't have any projects. Then go to Edit>All your triggers and switch off the ones you don't need.