title: DriveApp Access Denied
body: <p>I have a Google Script attached to a Form that does a whole bunch of different things, but ultimately creates a couple of copies of a sheet.</p>
  
  <p>The process has been working great for months, but recently I have been getting the following error when using the File.makeCopy method (<a href="https://developers.google.com/apps-script/reference/drive/file#makecopyname-destination" rel="nofollow noreferrer">https://developers.google.com/apps-script/reference/drive/file#makecopyname-destination</a>) </p>
  
  <pre><code> function createTest()
  {
    var templateFile = DriveApp.getFileById("ID");
    templateFile.makeCopy("NAME", DriveApp.getFoldersByName("FOLDERNAME").next())
  }
  </code></pre>
  
  <blockquote>
    <p>Access Denied: Drive App (on the templateFile.makeCopy line)</p>
  </blockquote>
  
  <p>I have ensured that the Drive scope is added and there are no GSuite settings that could cause this(such as the DriveApp being disabled).</p>
  
  <p>I cannot find a good answer as to why this would have stopped working over the last few days. Any ideas are welcome!</p>