title: Getting error "This action would increase the number of cells in the worksheet above the limit" with 50,000 cells
body: <p>I am trying to get a CSV downloaded from an URL into a new, empty Google sheet using script editor. </p>
  
  <pre><code> var raw = UrlFetchApp.fetch(final_url, options).getContentText();
   var data = Utilities.parseCsv(raw, "|");
   Logger.log(data[0].length); /// 17 (columns)
   Logger.log(data.length); /// 2849 (rows)
  
   var ss = SpreadsheetApp.getActiveSpreadsheet();
   var sheet = ss.getActiveSheet();
   sheet.getRange(1, 1, data.length, data[0].length).setValues(data);
  </code></pre>
  
  <p>As far as I understand it, I have a total of 48433 cells, but when I try to write it to the sheet, I get the error:</p>
  
  <blockquote>
    <p>This action would increase the number of cells in the workbook above the limit of 5000000 cells.</p>
  </blockquote>
  
  <p>Any ideas?</p>