TypeError: Cannot call method “getRange” of null. (line 0)

后端 未结 1 770
野趣味
野趣味 2020-12-21 19:19

I keep getting this error when I try and run this script. It has run just fine for several days. It is in a Google Docs Spreadsheet.

TypeError: Cannot call method \"

1条回答
  •  礼貌的吻别
    2020-12-21 19:55

    Have you checked the return value of ss.getSheetByName("PO Form"). It is most likely null. You also have a class level variable namedss and method variables named ss as well. This sort of shadowing can lead to problems if you're not very careful.

    0 讨论(0)
提交回复
热议问题