'insertImage via getFilebyID suddenly stopped working
I wrote a script months ago and it worked just fine but 2 days ago it stopped placing images. The var name with "url" is misleading seeing I am not using a URL by getting the file by ID.
That part of the script goes is suddenly haywire is:
var icon = finalDisplayArray[i][0]; (Im looping to place the images in this array.)
var iconURL = DriveApp.getFileById(icon);
//Logger.log tells me the above code does give me the valid name of the .jpg file here so it appears Google has the image ready to go
// THE BELOW IS WHERE IT BUGS OUT
ssDisplay.insertImage(iconURL, columnCounter, rowCounter);
// ERROR MSG: Exception: The image could not be inserted. Please verify it is valid and try again.
I haven't been using GAS for that long but is it normal for a program to suddenly quit working like this when it worked fine for months? The "columncounter", etc, is just me placing smaller icons in a row and then columsn if the row gets too long. Thought it might be since I'm using my company's email and the permissions maybe reset but all the file sharing, etc, is what it's always been.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
