I have enabled V8 runtime, but I get an error trying save: “We're Sorry, a server error occurred. Please wait a bit and try again.”

做~自己de王妃 提交于 2021-02-05 06:04:30

问题


I'm getting the

"We're Sorry, a server error occurred. Please wait a bit and try again."

when trying to save the script

If I run the script as is, it runs an older version

Here's my code:

function myFunction() {
  
  var ss2 = SpreadsheetApp.getActiveSpreadsheet();
  var sheet2 = ss2.getSheets()[0];

  var cell = sheet2.getRange("D3:D6");
  cell.setValue("Out");
  var cell = sheet2.getRange("D8:D12");
  cell.setValue("Out");
  var cell = sheet2.getRange("D14:D17");
  cell.setValue("Out");
  var cell = sheet2.getRange("D19:D31");
  cell.setValue("Out");
  var cell = sheet2.getRange("D33:D42");
  cell.setValue("Out");
  var cell = sheet2.getRange("D44:D50");
  cell.setValue("Out");
}

回答1:


I got it figured out. I deleted the whole project and copy/pasted the same code into a new one (added the appropriate triggers) and I'm getting no errors now.



来源:https://stackoverflow.com/questions/64079595/i-have-enabled-v8-runtime-but-i-get-an-error-trying-save-were-sorry-a-serve

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!