Apps Script Custom Function- Internal Error

前端 未结 2 1225
野趣味
野趣味 2021-01-20 03:11

I\'ve just started playing around with Apps Script. I opened a new spreadsheet, accessed the script editor, and wrote the following simple function:

functio         


        
相关标签:
2条回答
  • 2021-01-20 03:28

    There appears to be a recently-introduced bug in the handling of Google Apps Script custom functions.

    This is apparently the subject of Issue 5222. (I say "apparently" because that issue report isn't really clear. But good enough.) Star it to get more attention on it, and to receive updates.

    0 讨论(0)
  • 2021-01-20 03:35

    As per Google's documentation:

    A custom function call must return within 30 seconds. If it does not, the cell will display an error: Internal error executing the custom function.

    This was indeed my case and I after a wee bit of code optimization I reduced the occurrence of the error to 10% of the cases.

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