Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Arrow up icon
GO TO TOP
Learning Google Apps Script

You're reading from   Learning Google Apps Script Customize and automate Google Applications using Apps Script

Arrow left icon
Product type Paperback
Published in Mar 2016
Publisher
ISBN-13 9781785882517
Length 232 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
 Ganapathy Ganapathy
Author Profile Icon Ganapathy
Ganapathy
Arrow right icon
View More author details
Toc

Table of Contents (16) Chapters Close

Learning Google Apps Script
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
1. Introducing Google Apps Scripts FREE CHAPTER 2. Creating Basic Elements 3. Parsing and Sending E-mails 4. Creating Interactive Forms 5. Creating Google Calendar and Drive Applications 6. Creating Feed Reader and Translator Applications 7. Creating Interactive Webpages 8. Building a Workflow Application 9. More Tips and Tricks and Creating an Add-on Index

Overcoming the "script exceeded maximum execution time" error


What if one of your script functions has a bug that causes endless (not terminating) execution, for example, an endless for loop and/or while loop. There are no remedies other than carefully examining the loop terminating statements.

Sometimes, your script may be flawless or bug free, but if it needs to handle a large spreadsheet or external data, it may take a long time to complete the execution. The maximum allowed time for your script to run continuously is 6 minutes. If it exceeds that limit, GAS would throw the "Exceeded maximum execution time" exception.

To overcome this bottleneck, you can follow these steps. For example, if your doLengthyProcess function takes a long time to finish, then manually create a minute's trigger for the doLengthyProcess function so that it executes every 10 minutes...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime
Visually different images