How to solve error when adding big number of tables
问题 I have this Google Script where I am creating a document using a template table that lives in another document. The new document will have a number of small tables (like cards) in it. The code bellow works fine for 100, 200 tables and it finishes in less than 10 seconds. But it fails for more than 500 tables. There is no error message in the Executions window. I have tried the saveAndClose() function (commented out) but the error continues and it just takes longer to run. I ran out of ideas