Status Update
Comments
du...@google.com <du...@google.com>
mr...@gmail.com <mr...@gmail.com> #2
[Deleted User] <[Deleted User]> #3
@mr...@gmail.com: You probably should star this issue (if you haven't yet) if you are affected by it.
ma...@gmail.com <ma...@gmail.com> #4
var ml_howFrequent = 3;
function ml_install(){
//Delete any already existing triggers so we don't create excessive triggers
deleteAllTriggers();
if (ml_howFrequent < 1){
throw "[ERROR] \"ml_howFrequent\" must be greater than 0.";
}
else{
ScriptApp.newTrigger("ml_install").timeBased().after(ml_howFrequent * 60 * 1000).create();//Schedule next Execution
ScriptApp.newTrigger("ml_startSync").timeBased().after(1000).create();//Start the sync routine
}
}
function ml_startSync(){
Logger.log("Output this");
}
function deleteAllTriggers(){
var triggers = ScriptApp.getProjectTriggers();
for (var i = 0; i < triggers.length; i++){
if (triggers[i].getHandlerFunction() == "ml_startSync" || triggers[i].getHandlerFunction() == "ml_install"){
ScriptApp.deleteTrigger(triggers[i]);
Logger.log(triggers[i].getHandlerFunction(), " has been deleted");
}
}
}
st...@gmail.com <st...@gmail.com> #5
I also have an issue with trigger.
A script published as a web app and create a time trigger, when a new version of the web app is published with V8 runtime the authorization are lost.
So you have to revert runtime to old one and it goes back to normal way.
Stéphane
ta...@gmail.com <ta...@gmail.com> #6
I met the same issue here when I tried to create a time-based trigger inside of the script as answered in this post [1].
I have disabled V8 runtime option which made the script working again.
Is there an ETA for this issue?
[1]
dr...@gmail.com <dr...@gmail.com> #7
di...@gmail.com <di...@gmail.com> #8
Example, I have a trigger for getOrders that runs every 15 minutes, getOrders contains a timeBased trigger for syncStock. This second function gets disabled for unknown reason each time the initial trigger runs.
function getOrders {
// get orders
// delay execution of function syncStock for 2 minutes
var next = ScriptApp.newTrigger("syncStock").timeBased();
next.after(2 * 60 * 1000).create();
}
function syncStock() {
// sync stock
}
Function syncStock keeps getting disabled for unknown reason, it will not run at all.
gr...@tablet.academy <gr...@tablet.academy> #9
Just adding that I'm also seeing this issue. We have an add-on that allows the user to schedule an update overnight. If the script tries to set another trigger, it will be disabled for an unknown reason.
az...@gmail.com <az...@gmail.com> #10
ch...@gmail.com <ch...@gmail.com> #11
ps...@mythnomics.com <ps...@mythnomics.com> #12
"Exception: Service Spreadsheets failed while accessing document with ID ..."
When I enable V8 the error is not caught, but the installed trigger is disabled without running.
Please help!
is...@google.com <is...@google.com>
ja...@google.com <ja...@google.com>
vf...@usuhs.edu <vf...@usuhs.edu> #13
I reported a similar issue google.script.run
in a Forms add-on. Triggers are created as expected (when testing with the add-on installed and enabled), but they do not fire. I have never heard of triggers becoming disabled as the original post in this bug report suggests, but perhaps that is the issue in my case as well.
ma...@veolia.com <ma...@veolia.com> #14
Hello,
I created 2 triggers with triggerBuilder from appscript as you can see below
function onOpen() {
if(ScriptApp.getProjectTriggers().length == 0) {
ScriptApp.newTrigger("openRecord")
.forSpreadsheet(SpreadsheetApp.getActiveSpreadsheet())
.onOpen()
.create();
ScriptApp.newTrigger("openRecord")
.timeBased()
.after(5000)
.create();
ScriptApp.newTrigger("changeRecord")
.forSpreadsheet(SpreadsheetApp.getActiveSpreadsheet())
.onChange()
.create();
}
}
In the middle you can see an time based trigger with option after.
The need that i have is to let a user copy from a template sheet (with appscript code) and when he open the new copied sheet it should create 3 triggers :
- One onOpen
- One onChange
- One timebased after (this one is used to fire a simulate onOpen for the first attempt)
When i copy the sheet with another gmail account, all 3 triggers are never fired. the only one to fire correctly is the simple trigger onOpen that create the three triggers.
Can you help us with this issue.
If i disable v8 the lose the right to create installable trigger as you can see below :
You do not have permission to call ScriptApp.getProjectTriggers. Required permissions:
but in the manifest i already added the scope
{
"timeZone": "Europe/Paris",
"dependencies": {
},
"exceptionLogging": "STACKDRIVER",
"oauthScopes": ["https://www.googleapis.com/auth/forms", "https://www.googleapis.com/auth/spreadsheets", "https://www.googleapis.com/auth/script.scriptapp"],
"runtimeVersion": "DEPRECATED_ES5"
}
sh...@gmail.com <sh...@gmail.com> #15
aa...@gmail.com <aa...@gmail.com> #16
co...@gmail.com <co...@gmail.com> #17
I use several time based triggers in my project that I set programmatically. All of them are supposed to trigger one and the same function as they fire. This function, in turn, will (if certain conditions are met) create another time based trigger.
Everything has been working like a dream until a week ago, or so. Then, I started seeing some of the triggers marked as 'Disabled for unknown reason' before they even fired. I tried switching back to the Legacy engine, but that would paralyze my entire code completely, so I had to go back to V8. This is very upsetting.
ma...@gmail.com <ma...@gmail.com> #18
mi...@google.com <mi...@google.com> #19
Hello there!
Is anyone still experiencing this?
ma...@gmail.com <ma...@gmail.com> #20
mi...@google.com <mi...@google.com> #21
That could be the case.
I cannot reproduce this, but this was only reproducible in some accounts when it was first reported. Therefore, can you check if you still experience this behaviour?
ja...@google.com <ja...@google.com>
ol...@gmail.com <ol...@gmail.com> #22
I've still got same issue - my script works in sequential executions and each execution if it decides that there is more to do recreates itself with
var had_Error = false;
do {
had_Error = false;
try {
ScriptApp.newTrigger("somefuncname").timeBased().after(5).create();
} catch (e) {
console.warn("func() has to be retried: " + e);
had_Error = true;
Utilities.sleep(2000);
}
} while(had_Error == true);
This used to be working fine for months, but got broken somewhere in December-November and at the moment works only in non-V8 mode that is dramatically slower and my solution gets hit by trigger time quota really bad
aa...@gmail.com <aa...@gmail.com> #23
pr...@gmail.com <pr...@gmail.com> #24
co...@thefanmetric.com <co...@thefanmetric.com> #25
Modifying our scripts to suit ES5 is not convenient as well
This affects a large part of the automation that I need to incorporate for my business use case.
ga...@gmail.com <ga...@gmail.com> #26
da...@gmail.com <da...@gmail.com> #27
I experienced a similar problem from a Gmail add-on. This is the issue with the explanation:
se...@linaro.org <se...@linaro.org> #28
ta...@gmail.com <ta...@gmail.com> #29
I've come across a 100% reproducible case, but this happens only in my workplace Google Workspace account and not when I am executing the script on my private Gmail account.
What steps will reproduce the problem?
- Create a stand-alone Apps Script project with
this script in GitHub
This is a script framework designed to execute triggered functions based on the user's office hours. - Modify the value of
CAL_ID_HOLIDAY_JA
to the Google Calendar ID of your locale's holiday calendar, e.g.,en.japanese#holiday@group.v.calendar.google.com
- Manually execute
initialTrigger
What is the expected output? What do you see instead? If you see error messages, please provide them.
Three triggers, i.e., one for the resetTriggers
function and two for createOfficeHourCheckTrigger
will be created without an error.
The expected output is that all triggers will fire without error, however, the trigger for createOfficeHourCheckTrigger
will become disabled at the time of its execution. I have attached the screenshot of the disabled trigger and its Disable reason
message: This trigger has been disabled for an unknown reason.
Please provide any additional information below.
As the reporter pointed out, the triggers worked without any problem if I switched the runtime to DEPRECATED_ES5
and made subsequent adjustments to the script as in
pi...@gmail.com <pi...@gmail.com> #30
Some time based and even some onFormSubmit triggers are actually never triggered.
It is not isolated cases. It happens to a lot of users of my add-on.
This is a real issue that needs to be fixed asap.
ma...@gmail.com <ma...@gmail.com> #31
it is getting automatically disabled
se...@gmail.com <se...@gmail.com> #32
mk...@gmail.com <mk...@gmail.com> #33
mk...@gmail.com <mk...@gmail.com> #34
mk...@gmail.com <mk...@gmail.com> #36
mk...@gmail.com <mk...@gmail.com> #37
mk...@gmail.com <mk...@gmail.com> #38
mk...@gmail.com <mk...@gmail.com> #39
de...@gmail.com <de...@gmail.com> #40
ch...@gmail.com <ch...@gmail.com> #41
ni...@gmail.com <ni...@gmail.com> #42
le...@gmail.com <le...@gmail.com> #43
jo...@mindful.ai <jo...@mindful.ai> #44
The Card.build() function fails to run correctly. Any tips on how I can fix this to remedy the issue in the mean time?
mi...@gmail.com <mi...@gmail.com> #45
so...@riverlearningtrust.org <so...@riverlearningtrust.org> #46
bi...@gmail.com <bi...@gmail.com> #47
ma...@gmail.com <ma...@gmail.com> #48
ba...@gmail.com <ba...@gmail.com> #49
[Deleted User] <[Deleted User]> #50
do...@gmail.com <do...@gmail.com> #51
[Deleted User] <[Deleted User]> #52
jo...@gmail.com <jo...@gmail.com> #53
jo...@timenavi.com <jo...@timenavi.com> #54
I can create a minimal reproducible example that I can share with the team if it will be helpful to debug. (A card based add-on that displays a blank screen and creates a trigger function that does nothing). Also happy to share more about the impact this issue has on some of the add ons in the marketplace. Please feel free to email me if any of this will be helpful.
Unfortunately, switching to Rhino doesn't work for the card based add-ons either (card.build() fails), so currently there is no way to use triggers in card based add-ons.
Any tips/workarounds that you have would be hugely appreciated whilst we wait on a fix for the bug. Thanks!
Joshua
is...@gmail.com <is...@gmail.com> #56
Lastly, I used a free cronjob service and simply sent a GET request to my webapp [DEPLOYMENT] URL every Nth day of the week. Not an ideal solution but for a last resort, it is not bad.
Now, If you wish to setup a trigger from your own script after you have finished working then simply make a get request to webapp URL of your own script and it should work the same way.
jo...@timenavi.com <jo...@timenavi.com> #57
is...@gmail.com <is...@gmail.com> #58
minutes, minutes after minute and then stopped and removed itself.
Then on a set day of week, it had to redo this again. Since you can't
postpone a minutes trigger I had to rely on external cron job.
On 7/6/21, buganizer-system@google.com <buganizer-system@google.com> wrote:
--
Many Thanks
Muhammad Ismail
+923110864061
pi...@gmail.com <pi...@gmail.com> #59
Both time-based and onFormSubmit triggers get's disabled when it tries to fire it for the first time:
eg:
- When the user clicks on a button the OnFormSubmit trigger is set up. So far so good.
- When a first form is submited, the trigger is fired, but gets disabled right away without any execution or log.
- After that the trigger is not usable anymore.
It affects more and more users every day and is starting to be critical!
It's been already more than a year that issue was raised.
We need AT LEAST to get visibility on what's being done to solve the issue.
Thank you.
dr...@gmail.com <dr...@gmail.com> #60
ag...@gmail.com <ag...@gmail.com> #61
we...@pwc.com <we...@pwc.com> #62
Any Google Workspace Addons (not Editor Addons) that use the CardService have functionally no way to add Installable Triggers (Cannot downgrade from V8 Runtime).
This is causing a pain for the business users who rely on these addons, please provide an update.
pa...@gmail.com <pa...@gmail.com> #63
sa...@gmail.com <sa...@gmail.com> #64
la...@ll-photosoft.com <la...@ll-photosoft.com> #65
My add-on runs some checks on the users mailbox on regular basis.
Around 30% of all the triggers are disabled without errors reported in the logs.
That makes my add-on unreliable.
please provide an update or a workaround, rolling back to ES5_DEPRECATED is not a solution
ro...@gmail.com <ro...@gmail.com> #66
You can easily reproduce this issue by setting up a time-driven function which sets up another time driven function. Try the following code and you will reproduce it so long as you set up myFunction as a time-driven function - that's the critical part:
function myFunction() {
ScriptApp.newTrigger("triggeredFunc")
.timeBased()
.everyMinutes(1)
.create();
}
function triggeredFunc(){
console.log('Not firing.')
}
Rolling back to Rhino runtime isn't possible for me as I've written thousands of lines of code in ES6 now - something I wouldn't have done if I had known their were major faults in the V8 upgrade.
I just hope someone can be bothered to look at this again and in a more serious fashion as I'm getting increasingly frustrated with this company.
R
[Deleted User] <[Deleted User]> #67
an...@gmail.com <an...@gmail.com> #68
150756612
dr...@clinicaunivitta.com.br <dr...@clinicaunivitta.com.br> #69
[Deleted User] <[Deleted User]> #70
Just to add our voice to the long list of companies affected by this bug. There is no workaround (that we know of) and this is really strange such a big feature is faulty for such a long time.
ro...@gmail.com <ro...@gmail.com> #71
dr...@gmail.com <dr...@gmail.com> #72
fl...@onesession.fr <fl...@onesession.fr> #73
It gets disabled.
sa...@gmail.com <sa...@gmail.com> #74
do...@gmail.com <do...@gmail.com> #75
dm...@gmail.com <dm...@gmail.com> #76
Speaking of workarounds, you want to have a recurring trigger that you remove after you are done. I talk about it this Medium story, my thoughts on trigger stability are towards the end of the article.
jo...@mindful.ai <jo...@mindful.ai> #77
we...@pwc.com <we...@pwc.com> #78
ha...@digital-mozarts.com <ha...@digital-mozarts.com> #79
pa...@i3000.com.au <pa...@i3000.com.au> #80
fl...@existence.de <fl...@existence.de> #81
Problem
I ran into the same issues:
- Using V8 runtime (in appsscript.json)
- Card-based Add-On
- Trigger created from within card-based add-on always disables after first execution
- Tried to revert to runtime DEPRECATED_ES5 (in appsscript.json), did not work.
- Apparently, card-based add-on needs runtime V8.
Solution
In my testing environment (card-based add-on deployed as "Test deployements"), the following approach of using a web app seems to work for me (disclaimer: I have not yet tested this with a publicly deployed card-based add-on). This is my approach:
STEP 1: Web App Code (simplified version):
function doGet(request) {
try {
const trigger = ScriptApp.newTrigger('name_of_function')
.timeBased()
.everyHours(1)
.create();
return ContentService.createTextOutput(`Trigger created with id ${trigger.getUniqueId()}.`);
} catch (error) {
return ContentService.createTextOutput(`Request failed. Error: ${error}.`);
}
}
Important: My add-on is used by different people, so when I deploy the web app, I set "Execute as" to "User accessing the app" and "Who has access" to "Anyone with google account". This way each user will get their own separate trigger installed (owned by the respective user).
STEP 2: Install the trigger by calling the web app from within the actual Google Workspace Add-On
Instead of executing ScriptApp.newTrigger(fnName)... from within the card-based add-on, I now call the web app url with UrlFetchApp. It is important to send auth token in headers, otherwise the doGet() function of the web app is not executed but instead the google login screen is returned in the response object. Here is the "simplified" code:
const params = {
method: 'get',
headers: { Authorization: `Bearer ${ScriptApp.getOAuthToken()}` },
followRedirects: true,
muteHttpExceptions: true,
};
// the following URL should be your "Current web app URL"
const url = 'https://script.google.com/macros/s/SOME-LONG-STRING/exec';
const response = UrlFetchApp.fetch(url, params);
console.log('UrlFetchApp response: ', response.getContentText());
Doing it this way ensures that there is no additional interaction for the user. By using UrlFetchApp the trigger can be created from within the card-based Google Workspace Add-on.
Maybe this will work as a workaround for some of the folks in this thread until Google fixes this bug.
Again: I have not yet tested this with a publicly deployed add-on. Will keep you updated on this.
If anyone has experience with using this workaround with a publicly deployed add-on, please comment.
ya...@gmail.com <ya...@gmail.com> #82
Pray that this gets fixed soon.
ky...@gmail.com <ky...@gmail.com> #83
1.set trigger in doget(e) function
2.made script a web app and copy this web path
3.create a call function request selfapi
ca...@gmail.com <ca...@gmail.com> #84
Is anyone at google even working on this problem? Far out it's unbelievable how much time I've spent on this google calendar addin just to be kneecapped at the very end...
[Deleted User] <[Deleted User]> #85
pl...@gmail.com <pl...@gmail.com> #86
vi...@inaubi.fr <vi...@inaubi.fr> #87
pl...@gmail.com <pl...@gmail.com> #88
jo...@timenavi.com <jo...@timenavi.com> #89
As noted above, using the previous version (the Rhino runtime) doesn’t work for the new card based addons, it only works for the old kind of addons.
pl...@gmail.com <pl...@gmail.com> #90
I did have to update some code though.
[Deleted User] <[Deleted User]> #91
[Deleted User] <[Deleted User]> #92
ba...@logmein.com <ba...@logmein.com> #93
da...@logmein.com <da...@logmein.com> #94
Hi!
We tried the posted workarounds, but nothing worked for us. When we tried for example to install the trigger by calling the web app from within the actual Google Workspace Add-On, the fetch request returned a 401 response. We tried to send that request after we install the trigger (so sort of a passive way), and we also tried that to fire on user interaction (on a button push dedicated for that fetch request). Both returned 401 without much usable information. Sample response for that scenario:
{ 'Cache-Control': 'private, max-age=0',
Date: 'Tue, 08 Feb 2022 12:57:19 GMT',
'X-Content-Type-Options': 'nosniff',
'Content-Type': 'text/html; charset=UTF-8',
'WWW-Authenticate': 'Bearer realm="https://accounts.google.com/"',
'X-XSS-Protection': '1; mode=block',
Server: 'GSE',
'alt-svc': 'h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"',
'Transfer-Encoding': 'chunked',
Expires: 'Tue, 08 Feb 2022 12:57:19 GMT',
'X-Frame-Options': 'SAMEORIGIN',
'Content-Encoding': 'gzip',
'Content-Security-Policy': 'frame-ancestors \'self\'' }
<HTML>
<HEAD>
<TITLE>Unauthorized</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000">
<H1>Unauthorized</H1>
<H2>Error 401</H2>
</BODY>
</HTML>
We also tried to trigger an external microservice (calling an endpoint of that service which would call back to our calendar application, with the same style like we did from the internal), but that didn't help either - although the issue might be with our external service
We also tried to use the DEPRECATED_ES5 runtimeVersion or uncheck the Enable Chrome V8 runtime in the project settings, but neither seemed to work. As the previous commented noted, we also tried to get hold of someone in the Google team, to see if this issue is actively under work as it is 2 years old, but Google doesn't seem to care that much.
Could anyone please help or push us into the right direction, what could've gone wrong with our trials to make a workaround of this issue, as it is pretty much makes our integration unusable. Thank you!
ba...@logmein.com <ba...@logmein.com> #95
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 14 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
ba...@logmein.com <ba...@logmein.com> #96
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 15 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
ba...@logmein.com <ba...@logmein.com> #97
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 16 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
di...@gmail.com <di...@gmail.com> #98
ba...@logmein.com <ba...@logmein.com> #99
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 17 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
ba...@logmein.com <ba...@logmein.com> #100
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 21 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
[Deleted User] <[Deleted User]> #101
"Disable Reason - This trigger has been disabled for an unknown reason"
ni...@gmail.com <ni...@gmail.com> #102
ba...@logmein.com <ba...@logmein.com> #103
Google last replied to this issue on Feb 1, 2021, 1 year, 0 months, 22 days ago, and nothing has been done to fix this. It would be really nice if someone could confirm that this issue is actively being addressed.
LITERALLY, google's own example (
If you, Google, need help in reproducing the issue, feel free to contact me. I can provide you a 100% repro example project, and I can even walk you through it in a Google Meet call.
ha...@gmail.com <ha...@gmail.com> #104
ba...@logmein.com <ba...@logmein.com> #105
Dear
I have even called them up via the developer support, the answer I got was this after the phone call:
Thank you for your patience. I have tried to investigate the possibilities that would be available to me but there is no way I can speed up the process or impose any action on the developer directly. As long as the bug has an owner that means that there is awareness over it. If the engineer will decide that an update is necessary, please rest assured that he will provide that.
As best effort, I will do my best to see if there is any way that I can suggest an update on the thread from the engineer that is working on the bug. If that attempt succeeds, than you will be able to see the comment from the engineer appearing in the thread.
Unfortunately this is the most I can do since I can not influence the processes that have to be taken in the handling of this bug in a direct manner.
If their own support staff cannot promise to find the mysterious "
ce...@gmail.com <ce...@gmail.com> #106
If you need reliable scheduled tasks to run, consider migrating your workflows to Lambda with an EventBridge and stop wasting time on it. I would suggest Cloud Functions, but I've also experienced lengthy downtimes in the GCP environment before with little support.
gh...@gmail.com <gh...@gmail.com> #107
i create a onOpen trigger on open the document the trigger not fire and become disable with unknown reason.
when i edit and press the save button through the editor next time the work fine and start working.
however i also write a onOpen(e) function that also not work when user open document. any help from anyone who solve the problem.
function onOpen(e)
{
Logger.log(e);
Browser.msgBox("please open this");
}
is...@gazibotech.com <is...@gazibotech.com> #108
I have a Sheets document, with apps script, simple triggers, and installable triggers.
Suddenly, the installable triggers stopped working in my workplace environment.
Similar triggers do still work in a non-workplace environment.
I duplicated the document, so the new one did not have any installable triggers.
I created them manually, gave the the permission when first run - and still - they do not get fired.
The only thing i can think of: I was running a sidebar that had a timer that fired many google.script.run... to run a function in the code of the Sheets.
Maybe the quantity was too much, and some mysterious mechanism in Google - blocked some of my triggers as a result?
Well this is very bad.
If someone knows what can i do, where can i look - thanks
ad...@gmail.com <ad...@gmail.com> #109
al...@itechart-group.com <al...@itechart-group.com> #110
ba...@gmail.com <ba...@gmail.com> #111
I am experiencing the exact same issue. Users who use Google to authenticate against the web app, but do not have some form of access to the script project itself, are unable to install triggers that should be created by a trigger on the server-side.
ga...@cronin.nz <ga...@cronin.nz> #112
I logged this again and it has been marked as a duplicate. Two years later it is still a problem and means the Calendar add-on I have listed on the marketplace is hobbled.
ca...@gmail.com <ca...@gmail.com> #113
Hey hey. Hows everyone doing? Nice little community we've got going around A VITAL FUCKING BUG FROM 2 YEARS AGO JESUS
If you're just joining us, the only fix I've found for this is to downgrade your entire code to the ES5 engine.
Even then, I've just come across a few users that have their 'calendar - changed' trigger disabled for 'an unknown reason'. I'll be making a seperate bug report for it once I've investigated further.
Hey, Google devs, if you're going to axe addons, just put us out of our misery already. This is shit.
ba...@gmail.com <ba...@gmail.com> #114
Seems like it is time for us to start creating new threads, re-explaining the issue, asking Google not to merge into a thread assigned to a dev who no longer does any dev.
ca...@gmail.com <ca...@gmail.com> #115
On Wed, 13 Apr 2022, 4:26 pm , <buganizer-system@google.com> wrote:
an...@gscript.pro <an...@gscript.pro> #116
yu...@gmail.com <yu...@gmail.com> #117
ja...@checksheet.app <ja...@checksheet.app> #118
I've been trying to implement the workaround described in
After doing a bit of digging through the issue tracker it seems Google broke the underlying mechanism it uses without warning based on this reply in a
Yes,
It is now not possible to use WebApp as an endpoint. Unfortunately, there is no documentation.
Thanks!
It seems since around mid April 2022 you can no longer call a web app endpoint authorised as a given user by passing the Authorization
header containing an OAuth token.
So there is now no way to use installable triggers with the new card based workspace add-ons.
mi...@google.com <mi...@google.com> #119
Hi,
To anyone affected by this, can you provide an affected script id?
ba...@logmein.com <ba...@logmein.com> #120
[Deleted User] <[Deleted User]> #121
Affected script ID : 1pgO36uuaTAN0ycA3rvqGjQSHa_itbbB9QdcrTKFupycBKCK5KvqP6PNd
ja...@checksheet.app <ja...@checksheet.app> #122
I have workarounds in place for this in my editor add-on and have disabled my card based add-on altogether but if you are able to look back at past data my script ID is 1rt6HKLYUD5oXzoecSMpEnXv5d3AI40_3Qa8IvcqYQoVi6meWvRIeyP5g
.
mi...@google.com <mi...@google.com> #123
Thank you for providing the requested information.
al...@alicekeeler.com <al...@alicekeeler.com> #124
In Google Slides I set a trigger to onFormSubmit send the responses from the Form back to the Slides.
function setTrigger() {
let userProperties = PropertiesService.getScriptProperties();
let slidesId = userProperties.getProperty('slidesId');
let formId = userProperties.getProperty('formId');
console.log(formId);
var triggers = ScriptApp.getScriptTriggers();
for (var i = 0; i < triggers.length; i++) {
ScriptApp.deleteTrigger(triggers[i]);
}
ScriptApp.newTrigger('makePush')
.forForm(FormApp.openById(formId))
.onFormSubmit()
.create();
console.log(ScriptApp.getScriptTriggers().length);
Works great in my bounded (to Slides) script editor.
When I copy same script to unbounded on my workspace trigger gets disabled.
When I share the unbounded script with myself (gmail account) and run it, trigger gets disabled.
When I make a copy to my gmail account and run it, the trigger works.
Alice Keeler
Google Developer Expert
pe...@reseller.cloudwuerdig.com <pe...@reseller.cloudwuerdig.com> #125
Thank you for your patience in this case. Product Engineers have rolled out a fix for this issue, so time-based triggers should not get automatically disabled at their first run, even when they’ve been installed by other triggers. (Internal Case ID: 38767922)
jo...@timenavi.com <jo...@timenavi.com> #126
Thanks for the info, great news if this is the case.
What does this mean for event based triggers, are they still not working?
ja...@checksheet.app <ja...@checksheet.app> #127
I've done some initial testing on my card based add-on and.. they do seem to be working now 🥳
se...@google.com <se...@google.com> #128
Hello,
A fix has been released. Can you check if this is fixed for you as well?
Regards.
jo...@timenavi.com <jo...@timenavi.com> #129
Not able to confirm yet myself, but if it is fixed thank you so much for all the hard work that you put into it.
I know there is a lot of frustration in these issue tracker threads, so it's really appreciated when issues do get fixed!
wa...@reas.jp <wa...@reas.jp> #130
I was disappointed that it probably would not be fixed in the future, but I am very happy that it is now fixed. Thank you!
se...@google.com <se...@google.com>
al...@alicekeeler.com <al...@alicekeeler.com> #131
Screenshot URL:
gb...@gmail.com <gb...@gmail.com> #132
See
al...@alicekeeler.com <al...@alicekeeler.com> #133
have to do that from the test as addon.
On Sun, Jul 10, 2022, 9:37 AM <buganizer-system@google.com> wrote:
ga...@cronin.nz <ga...@cronin.nz> #134
So good to have this fixed. I have deployed a version of my published add-on with time triggers and it works well. Thank you.
ya...@gmail.com <ya...@gmail.com> #135
Problem still happening as of October 2022.
g2...@gmail.com <g2...@gmail.com> #136
Worse still, setting a timer for the date and time using ScriptApp.newTrigger will disable any start-up other than the first time.
If the specification has been changed in this way, I can give up, but if it has been corrected in other parts of the world, then it is not a problem in Japan (and India?). Asia?) Please fix it in Japan as well.
ma...@gmail.com <ma...@gmail.com> #137
Hi everybody,
I had a slightly different scenario: a webapp that, when executed (doGet), would install a time based trigger.
After researching extensively I found out that there is a way to fix this issue without reverting to DEPRECATED_ES5, and it's buried as last point of
"Update access to standalone scripts For standalone scripts running on V8 runtime, you need to provide users at least view access to the script in order for the script's triggers to work properly."
I tried and it worked for me: after changing the sharing settings to "Anyone with the link", the triggers weren't failing anymore.
I'm aware that this is not a solution for every case, as it would expose the code; at the same time, to access such script the users would still need to have the link to the script (don't share it!); also, if you don't have sensitive info hardcoded (like credentials), you could just obfuscate the code.
So you'll have to weigh yourself the trade-offs of this solution, but I hope this helps someone, at least in some cases!
Description
This issue was originally reported inhttps://stackoverflow.com/questions/60455263/ .
A short description of the issue: If a trigger is created programmatically ( installable trigger ) with a function triggered by another trigger, the given trigger will get disabled when trying to run for the first time.
What steps will reproduce the problem?
createOnSubmitTrigger()
function:installTimeTrigger
function, which will create a time-driven trigger that will get disabled when it tries to run for the first time.What is the expected output? What do you see instead? If you see error messages, please provide them. Expected Result: The time-driven trigger should be created and run.
Actual result: The time-driven trigger is created but it gets disabled when trying to run.
Please provide any additional information below.
DEPRECATED_ES5
runtimeversion there’s no issue and the trigger works as intended.