Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trigger Failures #9

Open
hellogeli opened this issue Apr 29, 2014 · 1 comment
Open

Trigger Failures #9

hellogeli opened this issue Apr 29, 2014 · 1 comment

Comments

@hellogeli
Copy link

I got such message when using trigger to update data every hour:

Your script, Daily Activity, has recently failed to finish successfully. A summary of the failure(s) is shown below. To configure the triggers for this script, or change your setting for receiving future failure notifications, click here.

The script is used by the document Untitled spreadsheet.

Summary:

Error Message Count
Please select an active sheet first. (line 43, file "Code") 24

Any ideas?

Thank you!

@valt449
Copy link

valt449 commented Mar 15, 2015

Try inserting this code:
var doc = SpreadsheetApp.openById("INSERT_SPREADSHEET_ID");
doc.getSheetByName("INSERT_SHEET_NAME");

Instead of this:
var doc = SpreadsheetApp.getActiveSpreadsheet();

Helped me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants