Error saving project: too many scripts created in one day - google-apps-script

I duplicated about 800 spreadsheets with the container-bound script in a day.
As a result, when I launch the duplicated container-bound script or I launch a new script, I get the following error:
“ Error saving project: too many scripts created in one day for this Google user account. ”
Perhaps the following questions or bug reports are relevant?
How do I get scripts running again if the AppsScript service has been throttled?
https://issuetracker.google.com/issues/63078880
It's been a day since the error appeared, but the situation hasn't changed and the error appears.
Is there upper limit for creating scripts that an account can create?
At what pace will the error be resolved?

The limit is 50 Apps Script projects per day.
You have to wait 24 hrs, but sometimes it takes a little longer.
Google quotas:
https://developers.google.com/apps-script/guides/services/quotas

Related

Is maximum number of Apps Script projects created per day applicable to container-bounded projects?

I am thinking of building my own application using AppScript and Spreadsheet.
I wonder if the maximum limit of AppScripts per day(mentioned in the link below) is applied to container-bounded projects or not.
https://developers.google.com/apps-script/guides/services/quotas
I'd like to run a script which copies a spreadsheet with a container-bounded project everytime it is runned.
My script is going to be runned more than 100 times per day, so, in other words, it creates more than 100 spreadsheets and the corresponding container-bounded projects per day. This number theoretically exceeds the limit that the official reference says.
However, when I tried copying a spreadsheet manually more than 50 times, I found no error message or assertion. Also, the copied scripts are all working in each spreadsheet.
I still wonder if my use of AppScript is safe or not.
I would appreciate it if you kindly give me advice.

Measure my current usage consumption on google app script

I have a google app script that execute the following actions:
Read a incoming webhook, write some information on a google spreadsheet, update a google contact and generates several outbound webhooks.
It takes aproximately 5 seconds to execute the whole script.
I would like to know how much times per day I can execute this script. I have seen the following web page but I am not sure in which feature my actions might fit, since there is no description of what those each feature means.
https://developers.google.com/apps-script/guides/services/quotas
Also I check in the google app script dashboard in hope I could find the current usage of my app script, but I only found that my script is execute 500 times per day for an average of 5 seconds per execution. In the future I am going to need to execute this app script more times, but I will like to know which is limit.
¿Where can I find my current app script consumption and which are the quotas for the features I am currently using?
As mentioned in the comments, Google Apps Script has a quota page that shows execution limits on various services.
Please note that you can get quota exception messages if you go near these limits but not go over them entirely.
Since you mentioned that you may need to execute your script more than 500 times a day, you might want to start optimizing your functions to take less time. You can start searching for resources on how to do this, for example in this post: Tracking total execution time Google apps script for an account

Simultaneous executions limit in google apps script

I am trying to evaluate Google Apps Script (GAS) as one of the component in my overall SaaS. But, I see there is quota limits.
https://developers.google.com/apps-script/guides/services/quotas#current_limitations
Can someone explain what "Simultaneous executions" stands for? Is it 30 Simultaneous executions per a script? Or 30 Simultaneous executions per an account?
I think it's per account. This is important when publishing web apps. When set to execute as "Me", you're limited to 30 simultaneous executions of all users, since they all run as "Me". But if set to execute as "user accessing the web app", then each user gets 30 simultaneous executions. Refer #Tanaike's answer
This also makes sense in case of add-on, where a single script project is published to execute as many users. If simultaneous executions of 30 applies per script, then a add-on could only have 30 users, which is certainly not the case.
Related Error messages from Google documentation:
Script invoked too many times per second for this Google user account. This indicates that the script began executing too many times in a short period. It most commonly occurs for custom functions that are called repeatedly in a single spreadsheet. To avoid this error, code your custom functions so that they only need to be called once per range of data, as explained in the guide to custom functions.
There are too many scripts running simultaneously for this Google user account. This indicates that you have too many scripts executing at once, although not necessarily the same script. Like the exception above, this most commonly occurs for custom functions that are called repeatedly in a single spreadsheet.
Notice both error messages end in "for this Google user account"
Comments from Google/Issuetracker links:
https://issuetracker.google.com/issues/168987850#comment6
https://issuetracker.google.com/issues/36764854#comment8
https://issuetracker.google.com/issues/144888046
https://issuetracker.google.com/issues/161091247#comment2
In almost all cases, Google representative says "for account". You may also create a new issue in the issuetracker for explicit documentation or clarification.

Google Apps Scripts self-starting at night

Context: I have a Google Spreadsheet with some data imported from the external API + some calculations done. API access + calculations are done using Google Apps Script. All those functions are within two files that belong to one project. Today in the morning I noticed multiple
Exception: Service invoked too many times for one day: urlfetch. errors. Strange enough, as neither I nor the second collaborator was working overnight. When I checked executions, it turned out there were multiple executions over the night. It looked as if the document was refreshed every 20-30 minutes.
Questions
How can I check what triggered those functions?
Any ideas how to prevent those executions?

Google apps script running in the background and depleting my quota?

On my paid Google account, I have a lot of sheets using various scripts to fetch urls. I know there is a daily quote of fetches set, but the issue I have is that even if I don't open any of my sheets with scripts for over 24 hours, and then I open one, I get the over quota error message: Service invoked too many times for one day: urlfetch. I wouldn't have thought scripts would be running in the background, ie. without me opening them, but I can't explain this in any other way - does anyone know if this is so? Another way to put the question, how can I avoid getting such error?
Do you have any time based triggers set up for other scripts?
You can check by going to script.google.com and selecting My Triggers on the left hand side. Some of you scripts may be set to run even if you are not present.