stevenschmatz / export-google-form

:arrow_down_small: A small Google Apps Script file to export a form into a JSON file.
MIT License
105 stars 43 forks source link

"Logging output too large. Truncating output." #10

Open SableRaf opened 1 year ago

SableRaf commented 1 year ago

When the form is too large, the JSON gets too big for the Logger and the output gets truncated.

I've looked into saving a JSON from App Script to Google Drive but I don't have a patch to share yet. This answer seems promising though: https://stackoverflow.com/a/52781036/2126791

If you happen to fix this, please post your code in the replies below, thanks!

MiroPsota commented 1 year ago

Might be still useful: Ln 18

//Logger.log(JSON.stringify(result));
DriveApp.getRootFolder().createFile('Output.json', JSON.stringify(result), MimeType.PLAIN_TEXT);