DocsServiceApp
DocsServiceApp copied to clipboard
Google sheets with long names cause unpredicted errors
I got to your library from one answer in stackoverflow.com. I was trying your code and it was giving an inexplicable error:
Error Error: No sheet name.
at putError(ExcelApp:519:13)
at getCommentsAsObject(ExcelApp:447:18)
at getComments(ExcelApp:67:36)
at getComments(SpreadsheetAppp:47:85)
at convertCommentsToNotes(Code:14:23)
So I run the code without specifying the sheet name and tried to found out what the problem was, and I found out that if the Google Sheet spreadsheet name is longer than 31 characters, it will truncate the name to that size, so it won't be able to find the name in the Excel version. I really think that fixing your code wouldn't be a big problem, but I don't have time atm to do so, so I simply ended up shortening the name of my sheets.
Best regards, Alejandro