This is probably an ignorant mistake on my part, but I am trying to assign different values from different column to an array to put in a master sheet. I would like the last column to be equal the the sheet name where the data came from to track it back. 

I feel I am close, but when I get to the last column which I want to be the sheet name I get the following error: Cannot convert Array to Object[][]. (line 19, file "combineTOmaster")

This is my code so far. I know the issue is the other column are array[[][]] and the last one is array [][] but I don't know how to fix it. Any ideas? 

```
function getColValues(label,sheetName) {

  var ss = SpreadsheetApp.getActiveSpreadsheet().getSheetByName(sheetName);
  var colIndex = getColumnIndex(label, sheetName);
  var numRows = ss.getLastRow() -1;
  if (colIndex > 0 ) { 
    var colValues = ss.getRange(2, colIndex, numRows, 1).getValues();
  } 
  else if (colIndex = "orginalsheet") { 
    var colValues = [];
    var array = [];
    for (var i = 0; i < numRows-1;i++) {
      array[i] = sheetName;
    }  
    colValues = array;
  }
      else {
    var colValues = [];
  }
  Logger.log(colValues);
  return colValues;
    }

```

Thank you