Google apps script 例外情况:此操作将使工作簿中的单元格数超过5000000个单元格的限制

Google apps script 例外情况:此操作将使工作簿中的单元格数超过5000000个单元格的限制,google-apps-script,Google Apps Script,我正在使用appscript和新的V8引擎制作一个webapp。当我在googlesheet中添加一行时,我得到以下异常 Exception: This action would increase the number of cells in the workbook above the limit of 5000000 cells. 代码如下:例如 var ss=SpreadsheetApp.openById(SheetId); var orderedValues=[UID-004, Ti

我正在使用appscript和新的V8引擎制作一个webapp。当我在googlesheet中添加一行时,我得到以下异常

Exception: This action would increase the number of cells in the workbook above the limit of 5000000 cells.
代码如下:例如

var ss=SpreadsheetApp.openById(SheetId);

var orderedValues=[UID-004, Timestamp, 34, Male , Mr. , xyz, xyz@.com, 26-Jun-2020, country, Yes, Yes, 1, 2, name, rt, religion , 2343545, place, 57, street, phone, esy, 45365, 675]

ss.appendRow(orderedValues);

直到昨天,它还运行得很好。不确定原因是什么…

正如在评论中告诉您的,并且正如异常消息明确指出的那样,您达到了500万个手机的上限

出于文档目的发布官方参考:

  • 在Google Sheets中创建或转换为Google Sheets的电子表格最多可包含500万个单元格或18278列(ZZZ列)
  • 从Microsoft Excel导入的电子表格最多可包含500万个单元格或18278列。Excel和CSV导入的限制相同
考虑将数据拆分成几个电子表格。我认为您不想接近这个极限(对于如此庞大的电子表格,性能可能会受到影响)

参考:

很明显,电子表格的大小是一个问题。这是有道理的。其中一张表格中有两个多列。谢谢你提供的信息