r/GoogleAppsScript • u/Old-Security5906 • May 13 '25
Question Large Data Script Error HELP
I'm running a script that is ingesting a large amount of database data, like ~80,000 rows of 7 columns chalk full of data in every cell. If I run the script to print it to a new sheet that I create just for the import it works fine. I print it in chunks of 50,000 rows and its fine, slow but fine. However, If I target my current database and have it either write over existing data or clear and then re-write the data, it hangs up at row 2857 every time.... the only thing I can think of is that maybe there are too many formulas in my spreadsheet that are trying to fetch the info in the database that it's trying to process too much stuff and freezes. Does anyone know anything about hidden limitations of printing data that interacts with formulas? is there a way to pause all formulas calculating until the script is finished? obviously printing to a blank sheet works fine if it's new, so the only thing I can figure is outside sources interacting with a blank sheet as it gets filled is too intense.
View all comments
Show parent comment
1
u/opatry May 13 '25
My only problem is whether or not the formulas is causing the scripts printing error is still just a hypothesis. Can’t quite figure out how to test it properly. Maybe make a copy of the workbook and delete all the formulas and try and run the script again… I’ll try this.