title: Project {project-id} is not found and cannot be used for API calls
body: <p>I have a google appscript that calls the Big Query API. It's working fine, but I want to duplicate the sheet and use for a different set of reports. I've duplicated the file once successfully a couple of months ago.</p>
  
  <p>Now when duplicating the report and authenticating with the Big Query API I get the following error:</p>
  
  <p>"Project {project-id-different-to-below} is not found and cannot be used for API calls. (line 16, file "reportModel")"</p>
  
  <p>I don't recognise the project id in the message, it's not the same as the one written into my code. Also before when I authenticated the API by trying to use it, the error message linked me to the relevant console page to enable use of the API, it no longer does this.</p>
  
  <p>This is the relevant part of the code:</p>
  
  <pre><code>  var projectId = '{project-id}';
  
    var request = {
      query: sql_code,
      useLegacySql : false
    };  
  
    var queryResults = BigQuery.Jobs.query(request, projectId);
  </code></pre>
  
  <p>Why is this happening and how can I authenticate the new google sheet file with the API? Also, why is the project id listed in the error message different to the one written in the code?</p>