有什么方法可以在 Google App Maker 中将大型 Excel CSV 文件转换为 Google Sheet?

Is there any way to convert a a large Excel CSV file to Google Sheet in Google App Maker?

在我的 Google App Maker 应用程序中,我试图将用户上传的大型 Excel CSV 文件转换为 Google Sheet。我以前使用这些代码行将较小的用户上传的 Excel CSV 文件转换为 Google Sheets:

     var xlsxBlob = DriveApp.getFileById(xlsxFileID).getBlob();
     var file = {
     };
     file = Drive.Files.update(file, ssFileID, xlsxBlob, {
       convert: true
     });

当我尝试上传大型 Excel CSV 文件时,出现此错误:

     Exception: File NAME.csv exceeds the maximum file size

我的 Excel CSV 文件是 56.5 MB。有什么方法可以将大型 Excel CSV 文件转换为 Google Sheet?我尝试关注此网站:https://www.geek.com/apps/geek-101-how-to-open-a-csv-document-with-google-docs-1551489/,它在上传后立即将 CSV 文件转换为 Google Sheet。但是,我收到一个错误:上传失败。非常感谢!

您可能必须将 csv 分成更小的块。此外,如果 csv 文件中的字段数超过 200 万个单元格,那么您手上还有另一个问题,因为 google sheet 的最大单元格数是 200 万个。

Google 工作表不是为处理大型数据库而设计的,因此您可能需要考虑使用替代解决方案;如果您计划将您的开发堆栈保留在 Google 的云平台下,您可以尝试 Big Query、Cloud SQL、Cloud Datastore 或 Cloud Firestore。