SetColumnCount(2) Error

40 views
Skip to first unread message

David Crowley

unread,
Dec 2, 2025, 9:37:10 AM Dec 2
to Google Apps Script Community
The ChatGPT-generated script throws an error at: 

body.setColumnCount(2);

Script and execution are attached.

Thank you,


Dave Crowley

Problem Google Script with Execution Log.pdf

Rubén Rivera (Wicket)

unread,
Dec 2, 2025, 7:40:47 PM Dec 2
to Google Apps Script Community
If you are looking to set your document to have two columns, you should use the Advanced Documents Service instead of the Documents Service (DocumentApp).

Kildere S Irineu

unread,
Dec 5, 2025, 6:45:13 AM (13 days ago)  Dec 5
to google-apps-sc...@googlegroups.com




This content was generated by a GPT specialized in Google Apps Script, created specifically to help with developing, debugging, and optimizing solutions integrated with Google Workspace (Sheets, Docs, Drive, Forms, Calendar, etc.).

The response clearly explains why the error occurs and how to fix it, always focusing on functional code and best practices.I hope this assistant helps others in the group solve their scripts more easily and efficiently!


--
You received this message because you are subscribed to the Google Groups "Google Apps Script Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-script-c...@googlegroups.com .
To view this discussion visit https://groups.google.com/d/msgid/google-apps-script-community/27a17eef-8927-4978-9e1e-4375e6e95851n%40googlegroups.com .
Reply all
Reply to author
Forward
0 new messages