Error message examples
The row index RowIndex passed as a parameter to Function SpreadsheetRange does not match the number of rows in the requested region. The index has 13 row(s), while the region has 12 row(s).
The number of rows in the range passed to the function and the length of the index passed as the «RowIndex» do not match. The number of rows and the size of the «RowIndex» should be the same.
Correct either the range in the Excel sheet or the index passed as the «RowIndex» so that they are equal.