Sheet Clinic

HomeDepartments

Automations

Copyable Apps Script recipes, down to the permission screen.

1 article in this department

The exact error wording in this department
  1. Timed OutExceeded maximum execution timeRead
  1. "Exceeded maximum execution time": make a slow script fast

    Code.gs sheet.getRange(row, 5).setValue(qty * price); Before one cell at a time, Timed Out A C D E 1 Customer Qty Price Total 100 Lauren 1 7.25 7.25 101 Brian 8 4.99 39.92 102 Emily 6 19.99 What changed One getValues read One setValues write After one read, one write A C D E 1 Customer Qty Price Total 100 Lauren 1 7.25 7.25 101 Brian 8 4.99 39.92 102 Emily 6 19.99 119.94 Figure 1. Rows 100 to 102 of the order log. The first script stopped after E101.

    Automations