This trigger has been disabled for an unknown reason.

490 views
Skip to first unread message

Nibesh Khadka

unread,
Apr 4, 2023, 11:31:25 PM4/4/23
to Google Apps Script Community
I have been working on editor addon. Its a standalone script. I added onformsbumit event programmatically, then later on changed it to onEdit trigger. 

Both time I got error "This trigger has been disabled for an unknown reason."

I would appreciate some tips on ths.

Thanks.

Brett Grear

unread,
Apr 5, 2023, 6:51:18 AM4/5/23
to Google Apps Script Community
I ran into this once. There is a limitation on add-ons making triggers. I'm sorry to say that I never did find a solution to it as I abandoned the project shortly after to pursue more pressing matters. If I get time later I'll try to find the threads where it was discussed. I seem to remember it was something to do with being in testing as well which defeats the purpose.  Sorry I was about as clear as mud.  Hopefully someone else has an easy solution, then we can both learn something. 

Nerio Villalobos

unread,
Apr 11, 2023, 4:20:12 AM4/11/23
to google-apps-sc...@googlegroups.com
The "This trigger has been disabled for an unknown reason" error message typically appears when Google has automatically disabled a trigger due to a policy violation, such as exceeding the maximum execution time or sending too many emails. However, in some cases, triggers may be disabled for unknown reasons, and this could be a bug.

Here are some tips that you can try to resolve this issue:

Double-check your code for any errors or issues that might cause the trigger to fail. Ensure that all the required permissions are granted, and there are no syntax errors in the script.

Try creating a new trigger with the same code and see if the new trigger gets disabled. If it does, it might be an issue with your code or an issue with Google. If it doesn't, then there might be a bug with the original trigger.

Check your G Suite account for any issues that might be causing the trigger to fail. For instance, check to see if your account has been flagged for suspicious activity.

If none of the above solutions work, contact Google Support for assistance. They may be able to help you identify and resolve the issue.

I hope these tips help you resolve the issue with your trigger.

--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-apps-script-community/1a3e30d2-6c43-4096-81ee-2871125edb8en%40googlegroups.com.


--
__________________________
Nerio Enrique Villalobos Morillo
Buenos Aires, Argentina
Reply all
Reply to author
Forward
0 new messages