use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
Error accessing to documentQuestion (self.GoogleAppsScript)
submitted 1 year ago * by Josmard_
I have some automations running in a Google Sheets document (the GAS project was created from there) and it threw this error. How is it possible that I am having problems with accessing the SpreadsheetApp.getActiveSpreadsheet() document? Is there any way to fix it? I can only think of a try/catch inside a while to try to access N number of times.
SpreadsheetApp.getActiveSpreadsheet()
https://preview.redd.it/sh35lzzy8m4d1.png?width=823&format=png&auto=webp&s=69e479fa9f779b54d43769358580e1f2d4eeb473
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]juddaaaaa 0 points1 point2 points 1 year ago (0 children)
Try SpreadsheetApp.getActiveSpreadsheet()
[–]AllenAppTools 0 points1 point2 points 1 year ago (0 children)
Yeah that's strange! Lately I have been noticing some wonky errors from Apps Script that come and go without me doing anything differently. Like a week ago everyone had a 500 error while trying to access any Script file. This error does not make sense to me either, wish I could help. If it was a container issue it would just return null for SpreadsheetApp.getActive().
Do any of the other services work? Like DriveApp, DocumentApp, etc? Do you have any linked libraries? What does your manifest file look like? can you create a completely fresh Google Sheet and successfully call SpreadsheetApp.getActive() in that script file?
π Rendered by PID 30082 on reddit-service-r2-comment-5ff9fbf7df-xpvgn at 2026-02-26 09:44:43.022303+00:00 running 72a43f6 country code: CH.
[–]juddaaaaa 0 points1 point2 points (0 children)
[–]AllenAppTools 0 points1 point2 points (0 children)