Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9786

getRange() Error Exception: The starting row of the range is too small

$
0
0

I have this little script that's giving me some trouble. I get the following error:

Error Exception: The starting row of the range is too smallappendToRecords @ Code.gs:10

What I'm trying to accomplish is to assign cell values(A list of names) from a specific range on one sheet after the last row of a specific column (F) in another sheet.

This is my current code:

function appendToRecords() {  var ss = SpreadsheetApp.getActiveSpreadsheet();  var sourcesheet = ss.getSheetByName("Assignment");  var targetSheet = ss.getSheetByName("Review")  var reportData = sourcesheet.getRange("C4:C13")                              .getValues();  var owner = targetSheet.getRange("F1:F").getValues();  var lastRow = owner.filter(String).lenght;  //copy data  targetSheet.getRange(lastRow + 1,1,10,1)              .setValues(reportData);};

Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 9786

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>