When I got my google sheet published online,
the link
https://spreadsheets.google.com/feeds/worksheets/MY_KEY/public/basic?alt=json
gives me
Sorry, unable to open the file at this time.
Please check the address and try again.
screenshot
What could be a problem?
I tried to sign out of my second account, but it didn't help.
Related
When I run my google app script, which used to work fine, I keep getting the error message
"This document is too large to be edited offline. Go online to resume editing."
After this message, I close the Google sheet and try to reopen but it won't let me for about 10 minutes. I have no idea why this is happening and how to fix it. Can anybody help me?
I think the problem is caused by the following code that shifts rows down and inserts a row at the top of a Google Sheet:
sheetLog.insertRows(2, 1);//shift all rows down (in history) by length of log
sheetLog.getRange(2,1,1,logResults[0].length).setValues(logResults);
I have a spreadsheet with a script that includes onOpen() which successfully creates some custom menus. When I copied the spreadsheet (and the bound script of course), the onOpen() no longer runs. I tried a few things I found from other postings of the same problem:
Revoke the new spreadsheet's authorization - can't because it does not show up in my account as an authorized app.
Manually create a trigger for when the doc opens - I get an error "We're sorry, a server error occurred. Please wait a bit and try again."
Copied the script file itself and renamed it.
Renamed the enclosing script project.
Renamed the enclosing spreadsheet.
So, none of these has worked. Anything else I can try, or is there a known problem on Google's side?
Thanks!
I looked at the said issue tracker and found that the problem stemmed from this line of code:
DriveApp.getFileById(SpreadsheetApp.getActiveSpreadsheet().getId());
To make this work, I would suggest to enable the Drive API in Resources -> Advanced Google Services. It will also ask you to enable Drive API in your Google Dev console. Do this and let me know if it worked for you.
I created an script in https://script.google.com/
and if I open the script in the browser I get the desire result
However, If I try to included it as part of Google Site, following the steps:
Edit Site
Insert --> App Script
and pasting the URL that works above
I get the following error: It didn't get me the error before with the same script, so I'm not sure if it is because any type of limitations in the number of scripts I can run or somehting like that
Sorry, the file you have requested does not exist.
Please check the address and try again.
thank you very much
this is a very old bug in apps script. to fix, change your url "script.xxxx..." to "sites.xxxx...".
When I tried to add a new editor, (only 1) using the following line of code:
myfile.addEditors([emailsAdd[i]]);
I got the error message:
"We're sorry, a server error occurred. Please wait a bit and try
again."
I tried to add the user manually and I came to know that his email address is not associated with a Google acoount.
Are you sure?
You are sending an invitation to xy. Since there is no Google account associated with this email address, anyone holding this invitation will have access without signing in."
However, yesterday I was able to add an email addresses not associated with Google accounts (same snippet, but using another script and another spreadsheet). Both spreadsheets are new spreadsheets, both spreadsheets' access is set to private. Why does it sometimes work to add new users without GA and sometimes it doesn't? Is there a way to control this behaviour?
Thanks,
Andreas
You are adding editors in two different ways, one manually, and one with code. With code, there is no warning if the email address doesn't exist, or the email address is not associated with a Google account.
When adding an editor manually, you will get a warning, BUT you can still add them.
I would be nice if there was a way to determine in code whether the editor email address has a problem or not. You could suggest that as Feature Request in the Apps Script Issue tracker: Apps Script Issue Tracker
I have been using valmerge google apps script with my team. We have been using it in a common google spreadsheet. But abruptly they are not able to run the script. It gives an error "you are not authorised". Whereas when I tried to share the same doc with other email addresses it worked fine for them.
What could be an issue that only on couple of email addresses it is giving an authentication issue and not on others ?
Any pointer is greatly appreciated..
Thanks!
I think this is related to an issue I have opened recently. Please take a look and "star" it to keep track of updates and kind of vote for it.