Trigger stops working after while

126 views
Skip to first unread message

Lucas Herman

unread,
Mar 28, 2023, 3:30:49 AM3/28/23
to Google Apps Script Community
Hi GAS users,

I run App scripts app with one trigger.
- Everything works fine for some time.
- After while trigger stops working and starts returning error: Authorization is required to perform that action.
- So I click to Edit trigger, then Save. Get prompt dialog to autorize app and trigger starts working again.
- This issue repeats and I have to autorize scripts again after while

Facts:
- The gmail account that runs app is NOT Google Workspace user.
- The project is Google cloud platform type

I would be glad for any of your hints or ideas.

Have a good day and good luck with your apps:)
Lucas

CBMServices Web

unread,
Mar 28, 2023, 2:33:34 PM3/28/23
to google-apps-sc...@googlegroups.com
Hi Herman 

Yes, google does disable triggers. It depends on how frequently the trigger is used. If it has not been used in a while, it will get disabled. Am not sure exactly how long they wait before disabling, I think its somewhere around 6 months to a year. 

So to avoid this, just make sure you are using it regularly.

--
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/db5b7975-a105-4317-bb02-d06ca0e61f1cn%40googlegroups.com.

Lucas Herman

unread,
Apr 1, 2023, 12:05:12 AM4/1/23
to google-apps-sc...@googlegroups.com
Hi,

my script runs every 10 or 15 minutes.
So I think this is not the case.

But thanks for your help. 

Lucas


út 28. 3. 2023 v 20:33 odesílatel CBMServices Web <cbmserv...@gmail.com> napsal:
You received this message because you are subscribed to a topic in the Google Groups "Google Apps Script Community" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/google-apps-script-community/7EhJASEnJHY/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAFX%2Bz3X5X4BL4SneS-f3F%2BygCPqdKNRjyr%2B%3DZg8TyoKin57FQw%40mail.gmail.com.

Jorge Handl

unread,
Apr 28, 2023, 1:57:40 PM4/28/23
to Google Apps Script Community
Have you found a solution? I'm having the same problem, with triggers that run from once an hour to once a day. Randomly getting these errors, even though the scripts run without issue when run manually.

Lucas Herman

unread,
May 5, 2023, 3:44:56 AM5/5/23
to google-apps-sc...@googlegroups.com
Unfortunately, I haven't solved it yet.
I'm planning to copy the whole script under another gmail account and try if the problem persists.

Renato Aurelio

unread,
May 15, 2023, 9:20:48 PM5/15/23
to Google Apps Script Community
I am also having the same problem. I'm thinking of developing a routine that executes a smaller number of triggers, thus reducing the margin of error.

malys training

unread,
Jan 15, 2025, 7:02:57 AMJan 15
to Google Apps Script Community
Exactly the same.
I use a gmail account
The script is triggered once a week.
It's working well 1 week and after that "Authorization is required to perform that action" I need to validate again authorization"
Any idea?
Reply all
Reply to author
Forward
0 new messages