title: Unable to access xsjs file from browser
body: <p>I am new to SAP HANA and trying to expose the .xsjs file data through the webbrowser with the following url:</p>
  
  <pre><code>hostname:80&lt;instance#&gt;/workspace/session/a00/data/services/retrieveData.xsjs
  </code></pre>
  
  <p>However, I am getting the following error when I try to access it:</p>
  
  <blockquote>
    <p>This link seems to be broken We could not find the resource you're trying to access. It might be misspelled or currently unavailable</p>
  </blockquote>
  
  <p>These are the files which I have created in the project explorer:    </p>
  
  <p><strong>MYSCHEMA.hdbschema</strong> </p>
  
  <pre><code>schema_name="MYSCHEMA"
  </code></pre>
  
  <p><strong>trendsData.hdbtable</strong> </p>
  
  <pre><code>table.schemaName = "MYSCHEMA";                                                           
  table.tableType = COLUMNSTORE;   
  table.description = "NewDataSet Order trendsData";
  
  table.columns = [
  
  
         {name= "C";   sqlType = NVARCHAR; nullable = true; length=10; },
         {name= "D";   sqlType = VARCHAR;  nullable = true; length=5;  },
         {name= "DU";  sqlType = NVARCHAR; nullable = true; length=20; },
         {name= "SA";  sqlType = DECIMAL;  nullable = true; length=30; },
         {name= "I";   sqlType = DECIMAL;  nullable = true; length=30; },
         {name= "G";   sqlType = DECIMAL;  nullable = true; length=30; },
         {name= "G";   sqlType = DECIMAL;  nullable = true; length=20; },
         {name= "STR"; sqlType = DECIMAL;  nullable = true; length=30; }
          ];
   table.primaryKey.pkcolumns = ["INVENTORY"];
  </code></pre>
  
  <p><strong>orderId.hdbsequence</strong> </p>
  
  <pre><code>schema="MYSCHEMA";     
  start_with=2000000;
  cycles=false;    
  depends_on_table="workspace.session.a00.data::trendData";
  </code></pre>
  
  <p><strong>retrieveData.xsjs</strong>             </p>
  
  <pre><code>$.response.contentType="text/html";                                                                    
  var output = "Helloworld";                                                                                
  var conn  = $.db.getConnection();
  
  var pstmt = conn.prepareStatement("select * from trendData");
  
  var rs    = pstmt.executeQuery();
  
  if (!rs.next())                                                                                   
  {
      $.response.setBody( "Failed to retrieve data");
      $.response.status = $.net.http.INTERNAL_SERVER_ERROR;
  }
  
  else                                                                                        
  {                                                                                            
  output=output + "This is the respose from my SQL: "                                                     
  + rs.getString(1);                                                                                
  }                                                                                         
  rs.close();                                                                                   
  pstmt.close();                                                                          
  conn.close();                                                                 
  $.response.setBody(output);
  </code></pre>
  
  <p>All the above files were succesfully committed and activated with out any error. Still, the error occurs in the webrowser.</p>