Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Error on script that has been working for years

109 views
Skip to first unread message

sben...@bbchs.org

unread,
Feb 13, 2025, 7:58:46 AMFeb 13
to Google Apps Script Community
I have all of a sudden started getting this error when a script is running.
I tried to go into the script and run it manually from the editor to get the authorization pop up to reauthorize it. 
Exception: Authorization is required to perform that action.

Here is the code where the error is happening. 

var newFile = DriveApp.getFileById(template.getId()).makeCopy().setName(shortDate + " Sub Coverage");

The file is in a shared drive that I am the  manager for.

I still have access to the template I am using.  It is also stored in the shared drive.

Thanks

sben...@bbchs.org

unread,
Feb 13, 2025, 8:09:53 AMFeb 13
to Google Apps Script Community
I just narrowed it down, it is not letting me access the template file.  

sben...@bbchs.org

unread,
Feb 14, 2025, 8:38:33 AMFeb 14
to Google Apps Script Community
I was able to restore most scripts by removing all permissions and adding them back.  But is it still happening with certain scripts.  I was using this one with one line of code and it is not working.  
Screenshot 2025-02-14 073813.png

sben...@bbchs.org

unread,
Mar 16, 2025, 11:14:59 AMMar 16
to Google Apps Script Community

There was a location setting in the Admin panel that was blocking the script based on the location of the server.  

NILESH KUMAR

unread,
Mar 17, 2025, 2:21:30 AMMar 17
to google-apps-sc...@googlegroups.com

😂


--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/e9bfd738-3df0-4e65-a536-8c77b89401fcn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages