Dmitry Dubinsky
Dmitry Dubinsky

Reputation: 11

Server error occurred at DriveApp.createFile

Every time I'm trying to manually invoke this test function in my script I get Server Error occurred. Please wait and try again (in a red bar on top of the editor window).

My original intention was to save a blob with createFile(blob) in my Web App, but it just fails with no error output, so I created this minimal test function.

function testgdrive()
{
  var gdrive_file = 
  DriveApp.createFile("testfile","testcontents",MimeType.PLAIN_TEXT);
}

EDIT: This happens both on old Rhino engine and the new V8 engine as well.

The Web App is being deployed as a Google Sheets script on my basic (free) GSuite account.

It is a Google Cloud project, as I wasn't able to get any logs for Web App executions in the Standard mode at all.

Upvotes: 0

Views: 158

Answers (1)

TheMaster
TheMaster

Reputation: 50482

For server errors such as

Server Error occurred. Please wait and try again

Creating/switching over to a new project may resolve the issue.

Upvotes: 1

Related Questions