Google Apps脚本触发器:您的触发器配额已超出

编程入门 行业动态 更新时间:2024-10-20 08:25:36
本文介绍了Google Apps脚本触发器:您的触发器配额已超出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述 任务: 对于我们的每个客户,我们需要构建8个电子表格,每个电子表格都带有最少2个触发器。 1)打开和2)基于时间刷新大型电子表格中的特定数据。 (这是一个解决失败的导入范围函数的工作)

我们目前有100个客户,并且很快扩展到200个。

因此,我们目前的需求是apprx 800电子表格和1,600个触发器;预计分别为1,600和3,200.

问题 创建前300个电子表格apprx 600触发器后,我们收到以下错误:

您的触发器配额已超出,要创建更多,您必须删除一些现有触发器。

期望的解决方案: 我们正在为每个客户收集私人谷歌网站上的8个电子表格。理想情况下,我们可以从网站调用每个电子表格脚本,并消除基于时间的触发器。尝试创建一个按钮来执行该脚本,但在网站上,它不是交互式的。

问题: 在Windows上运行7,错误在Chrome中也尝试了firefox,并且得到了同样的错误。 1)有人知道触发器的限制,是否在某处发布?有没有办法增加这些限制?

2)有关另一种解决方案或解决方案的任何想法?

任何帮助/建议非常感谢。 非常感谢,

解决方案

Eric已经回答了您的问题(1)。 (否,否)

现在回到问题(2),可能的解决方法是反转脚本的场景,而不是每个脚本都将其数据放在更大的电子表格,主人的一个脚本可以将数据分发到所有其他电子表格中。您可以对每个电子表格进行一些注册,也可以将它们放在同一个文件夹中,或者其他任何适合您的方式。通过改变这种方法一,你一定会遇到另一个限制,这是脚本总运行时间:6分钟。但是,您可以轻松解决此问题,方法是将任务分解为可以在每分钟触发器上工作并恢复的小块。

Task: For each of our clients, we need to build 8 spreadsheets with min 2 triggers each. 1) on Open and 2) Time based to refresh specific data from a larger spreadsheet. (This is a work around for failing importrange functions)

We currently have 100 clients, and are expanding to 200 shortly.

Therefore, our current need is apprx 800 spreadsheets, and 1,600 triggers; projected to be 1,600 and 3,200 respectively very soon.

Problem After creating the first 300 spreadsheets apprx 600 triggers, we have received the following error:

"Your Quota of Triggers has been exceeded. To Create more, you must delete some existing triggers."

Desired Solution: We are collecting the 8 spreadsheets on a private google site for each client. Ideally we could invoke each spreadsheet script from the site, and eliminate time-based triggers. Tried creating a button to execute the script, but on the site, it is not interactive.

Questions: Operating on Windows 7, error is in Chrome also tried firefox, and got same error.

1) Does anyone know of the limits on triggers, is it published somewhere?Is there a way to increase these limits?

2) Any ideas on another work around or solution?

Any help/advice is greatly appreciated. Many thanks,

解决方案

Eric already answered your question (1). (No, and no)

Now to question (2), a possible workaround is to invert the scenario of your scripts, instead of each script fetch its data on the "larger spreadsheet", a single script on your master could distribute the data on all other spreadsheets. You could have some kind of "registration" of each spreadsheet, maybe place them in the same folder, or any other way that suit you.

By changing the approach to this one, you'll surely run into another limitation, which is the script total run time: 6 minutes. But this problem you can easily work around by splitting the task into minor chunks that you can work and resume on a every minute trigger.

更多推荐

Google Apps脚本触发器:您的触发器配额已超出

本文发布于:2023-10-26 23:56:00,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:触发器   您的   配额   脚本   Google

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!