title: How do you resolve a "The parameters (number[]) don't match the method signature for SpreadsheetApp.Range.setValues" error
body: <p>I am getting this error:</p>
  
  <blockquote>
    <p>"The parameters (number[]) don't match the method signature for SpreadsheetApp.Range.setValues." </p>
  </blockquote>
  
  <p>in my Google Apps Script when I try to write an array of values to a sheet.</p>
  
  <p>Below is a shortened (simplified) version of code. The actual code runs through about 10,000 records.</p>
  
  <p>The error is generated in the last line, when the <code>setValues</code> is called.</p>
  
  <p>I know I'm missing something super simple here.</p>
  
  <pre><code>function writeArrayToSheet() {
  
    var ss = SpreadsheetApp.openById("Spreadsheet_ID");
    var orderSheet = ss.getSheetByName("Sheet_Name");
    var vTable = orderSheet.getRange(1,6,5,11).getValues(); //Raw data 
    var vWriteTable = []; //Data that will be written to sheet
    var updateTime = new Date();
    var i = 0;
    var vSeconds = 0;
  
  
    while (i &lt; 5 &amp;&amp; vTable[i][0] != "") {
  
      //Logic section that calculated the number of seconds between
  
      if (vSeconds == 0) {
        vWriteTable.push("");
      } else {
        if (vTable[i][6] &lt; certain logic) {
          vWriteTable.push("Yes");
        } else {
          vWriteTable.push("");
        }      
      }        
      i = i + 1;
    } // End while
  
    orderSheet.getRange(1,20,vWriteTable.length,1).setValues(vWriteTable);
  } //End Function
  </code></pre>
  
  <p>This is what <code>vWriteTable</code> looks like when debugging:</p>
  
  <p><a href="https://i.stack.imgur.com/Why0V.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Why0V.png" alt="debug data"></a></p>