title: server error inserting image into google sheets
body: <p>I continually get this error:</p>
  
  <p>"We're sorry, a server error occurred. Please wait a bit and try again."</p>
  
  <p>When trying to run the following code:</p>
  
  <pre><code>function insertSig(){
    //get the folder
    var sigFolder = DriveApp.getRootFolder().getFoldersByName("Signature").next()
    //get the file
    var sig = sigFolder.getFilesByName("Signature.png").next()
    //get the blob data
    var sigBlob = sig.getBlob();
  
    //access the sheet
    var ss = SpreadsheetApp.getActiveSpreadsheet();
    var sheet = ss.getActiveSheet()
  
    //insert image into sheet
    sheet.insertImage(sigBlob, 1, 1)// throws error 
  }
  </code></pre>
  
  <p>I don't believe its an issue with the blob data as I have been able to log and print data from the blob and create a new file in other places on my google drive using the blob data.</p>
  
  <p>I've also been able to access and edit other data on the spreadsheet.</p>
  
  <p>I'm not sure what else to test/try and i'm quite stumped.</p>
  
  <p>Thanks in advance,
   -L</p>