Google Apps Script

Quotas for Google Services

Apps Script services impose daily quotas and hard limitations on some features. If you exceed a quota or limitation, your script will throw an exception and terminate execution.

Current quotas

Quotas are set at different levels for users of consumer accounts (like gmail.com), Google Apps for Your Domain (free but discontinued), and Google Apps for Business, Education, or Government.

The table below lists the daily quotas as of April 2014. You can confirm the current on the Quota Limits tab of the Apps Script Dashboard. The quotas shown below are provided solely to assist you in testing scripts. All quotas are subject to elimination, reduction, or change at any time, without notice.

Feature Consumer (gmail.com) Google Apps for Your Domain Google Apps for Biz/Edu/Gov
Calendar events created 5,000 / day 10,000 / day 10,000 / day
Contacts created 1,000 / day 2,000 / day 2,000 / day
Documents created 250 / day 500 / day 1,500 / day
Email recipients per day 100 / day 100 / day 1,500 / day
Gmail read/write (excluding send) 20,000 / day 20,000 / day 20,000 / day
Groups read 2,000 / day 5,000 / day 10,000 / day
JDBC connection 10,000 / day 10,000 / day 50,000 / day
JDBC failed connection 100 / day 100 / day 500 / day
Properties write 50,000 / day 100,000 / day 500,000 / day
SOAP calls 5,000 / day 20,000 / day 20,000 / day
Spreadsheets created 250 / day 500 / day 3,200 / day
Triggers total runtime 1 hr / day 3 hr / day 6 hr / day
URL Fetch calls 20,000 / day 50,000 / day 100,000 / day
URL Fetch data received 50MB / day 100MB / day 100MB / day

Current limitations

The table below lists hard limitations as of November 2013. The limits shown below are provided solely to assist you in testing scripts. All limits are subject to elimination, reduction, or change at any time, without notice.

Feature Consumer (gmail.com) Google Apps for Your Domain Google Apps for Biz/Edu/Gov
Email attachments 250 / msg 250 / msg 250 / msg
Email body size 200kB / msg 200kB / msg 400kB / msg
Email recipients per message 50 / msg 50 / msg 50 / msg
Email total attachments size 25MB / msg 25MB / msg 25MB / msg
Properties value size 9kB / val 9kB / val 9kB / val
Properties total storage 500kB / script 500kB / script 500kB / script
ScriptDB objects 50,000 / db 50,000 / db 50,000 / db
ScriptDB object size 4kB / obj 4kB / obj 4kB / obj
ScriptDB total storage 50MB / user 100MB / user 200MB / user
Triggers 20 / user / script 20 / user / script 20 / user / script
URL Fetch headers 100 / call 100 / call 100 / call
URL Fetch header size 8kB / call 8kB / call 8kB / call
URL Fetch POST size 10MB / call 10MB / call 10MB / call
URL Fetch URL length 8kB / call 8kB / call 8kB / call

Exception messages

If a script reaches a quota or limitation, it will throw an exception with a message similar to the following:

  • Limit exceeded: Email Attachments Per Message. This indicates that the script exceeded one of the quotas or limitations listed above.
  • Service invoked too many times: Calendar. This indicates that the script called the given service too many times in one day.
  • Service invoked too many times in a short time: Calendar. Try Utilities.sleep(1000) between calls. This indicates that the script called the given service too many times in a short period.
  • Service using too much computer time for one day. This indicates that the script exceeded the total allowable execution time for one day. It most commonly occurs for scripts that run on a trigger, which have a lower daily limit than scripts executed manually.
  • 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.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.