title: Very simple Google-apps script results in syntax error
body: <p>I have a collection of Google App. scripts that I run as standalone apps., usually embedded into Google Sites. Yesterday I copied one of my functioning scripts and modified as I have done many times in the past but now the new scriptit does not run, it fails with a syntax error. Having stared at this extremely simple script for hours without a resolution I am thinking it may be a problem with Google, or some issue in my domain (Corp. domain).</p>
  <pre><code>function doGet() {
     var t = HtmlService.createTemplateFromFile('index');  
     var ss = SpreadsheetApp.openById('sheet_ID');
     var lrN = ss.getSheetByName('NCMR').getLastRow();
  
  t.statArray = ss.getSheetByName('NCMR').getRange('Z3:Z'+lrN+'').getValues();
  
  return t.evaluate().setSandboxMode(HtmlService.SandboxMode.IFRAME);
  }
  </code></pre>
  <p>snip from the execution transcript when I try to run:</p>
  <pre class="lang-none prettyprint-override"><code>[17-04-13 06:39:26:322 PDT] Sheet.getRange([Z3:Z23]) [0.072 seconds]
  [17-04-13 06:39:26:381 PDT] Range.getValues() [0.058 seconds]
  [17-04-13 06:39:26:382 PDT] Function.apply([[]]) [0 seconds]
  [17-04-13 06:39:26:389 PDT] Execution failed: SyntaxError: Syntax error. (line 8, file &quot;Code&quot;) [0.254 seconds total runtime]
  </code></pre>
  <p>Error from debugger:</p>
  <blockquote>
  <p>We're sorry, a server error occurred. Please wait a bit and try again.</p>
  </blockquote>
  <p>and then it has the following in the left hand pane of the debugger:</p>
  <pre class="lang-none prettyprint-override"><code>&lt;Unknown file&gt;null [0]
  Code : doGet [8]
  </code></pre>
  <p>Any help or insight will be much appreciated. Apologies if this is a lay up and/or has already been answered.</p>
  <p>EDIT to add html file:</p>
  <p>index.html</p>
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js&quot;&gt;&lt;/script&gt;
  &lt;script src=&quot;//ajax.googleapis.com/ajax/libs/jqueryui/1.9.1/jquery-ui.min.js&quot;&gt;&lt;/script&gt;
  &lt;base target=&quot;_top&quot;&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;center&gt;
  &lt;table&gt;
  &lt;tr&gt;&lt;td&gt;&lt;b&gt; Id&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;
  &lt;?= for (var i = 0; i &lt; statArray.length; i++) { ?&gt;
    &lt;?= for (var j = 0; j &lt; statArray[i].length; j++) { ?&gt;
      &lt;tr&gt;&lt;td&gt;&lt;?= statArray[i] ?&gt;&lt;/td&gt;
    &lt;?= } ?&gt;
      &lt;/tr&gt;
  &lt;?= } ?&gt;
  &lt;/table&gt;
  &lt;/center&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>