Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Problems with OpenByURL and OpenbyId

58 views
Skip to first unread message

Eduardo Guizar

unread,
Mar 21, 2025, 4:26:41 AMMar 21
to Google Apps Script Community
I had an app script that was working fine, until suddenly it started showing this error: Unexpected error while getting the method or property openById on object SpreadsheetApp. at doGet(Code: 7:27) The file exists, it hasn't been deleted, the ID is correct. Just suddenly it didn't want to work anymore.

George Ghanem

unread,
Mar 21, 2025, 1:26:19 PMMar 21
to google-apps-sc...@googlegroups.com

Try re-deploting the webapp and make sure that it is set to run as you. Also make sure your account has at least read access to the spreadsheet.


On Fri, Mar 21, 2025, 1:26 a.m. Eduardo Guizar <eduardo...@enlight.mx> wrote:
I had an app script that was working fine, until suddenly it started showing this error: Unexpected error while getting the method or property openById on object SpreadsheetApp. at doGet(Code: 7:27) The file exists, it hasn't been deleted, the ID is correct. Just suddenly it didn't want to work anymore.

--
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/8eed2214-c2dc-4b5d-b8bd-daf95a756182n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages