Google Script Services: what does “deserialize continuation” mean?

I wrote Google Apps Script to do some fancy calculations in a Google spreadsheet.

Script reads the values ​​from two columns on a sheet and writes their output to the third column.

When calling Script, I call var someVar = Browser.inputBox("prompt"); 3 times to receive - from the user - the column names of 2 input and 1 output columns.

For example, if the user wants Script to read from columns A and B and write to column C, he must specify the letters "A", "B" and "C" in the specified order, in the 3 input windows that appear.

Script is executed successfully several times. Recently, after the first call to Browser.inputBox (which means after filling in some value in the input field and clicking OK), the "Deserialization of continuation failed" error occurs (it appears in the red toast-like message box at the top of the page), and Script stops execution (which means that the remaining remaining input fields are not displayed).

I googled for “Deserialization Continuation Failed”, I got literally 2 results. Both of them are useless. Does anyone know what this error message means, and how to fix it? Any help would be greatly appreciated.

+7
source share
1 answer

When a Browser.inputBox or other script pause operations are used (for example, a debugger) and wait for interaction with the end user, the script is "serialized" (a fancy word to save) as a continuation .

If you can narrow this down in some reproducible scenario, please select an item in the Tracker Issue. Or maybe check out other posts with a sequel - https://code.google.com/p/google-apps-script-issues/issues/list?can=1&q=continuation

+4
source

All Articles