Error with getLastRow()

175 views
Skip to first unread message

Luis M. Castañeda

unread,
Aug 23, 2017, 8:04:56 AM8/23/17
to AdWords API Forum
Since yesterday, all my scripts that use getLastRow() stopped working.
I get the following error "No se puede cambiar el tamaño de la columna de forma automática con el índice "17" porque solo hay "17" columnas. (line 785)" which is something like "You can not resize the column automatically with the index "17" because there are only "17" columns. (Line 785)"
Also getting the error "TypeError: Cannot call method "getLastRow" of null. (line 785)"
To debug my script I am just using the following code on line 785.
      Logger.log(sheet.getLastRow());
Any idea why it stopped working?
Thanks,

Luis

Shwetha Vastrad (AdWords API Team)

unread,
Aug 23, 2017, 11:25:28 AM8/23/17
to adwor...@googlegroups.com
Hi Luis, 

On this forum, we address technical questions related to AdWords API. Since your question is related to Apps Scripts, I would suggest that you use the support options listed here.

Regards,
Shwetha, AdWords API Team.
Reply all
Reply to author
Forward
0 new messages