AnsweredAssumed Answered

Error when adding a feature layer

Question asked by joepub on Oct 13, 2014
Latest reply on Oct 13, 2014 by joepub

I have a very basic script show below and get the error:

Any ideas as to what I'm doing wrong??

 

 

Error {code: 500, message: "Error performing query operation", details: Array[0], log: undefined, httpCode: 500}

  1. _ssl: undefined
  2. code: 500
  3. details: Array[0]
  4. httpCode: 500
  5. log: undefined
  6. message: "Unable to draw graphic (null): Error performing query operation"
  7. stack: "Error↵ at Error (native)↵ at Object.e.load (http://js.arcgis.com/3.10/init.js:619:426)↵ at http://js.arcgis.com/3.10/init.js:187:69↵ at c (http://js.arcgis.com/3.10/init.js:74:221)↵ at d (http://js.arcgis.com/3.10/init.js:74:10)↵ at resolve.callback (http://js.arcgis.com/3.10/init.js:75:350)↵ at c (http://js.arcgis.com/3.10/init.js:74:436)↵ at d (http://js.arcgis.com/3.10/init.js:74:10)↵ at resolve.callback (http://js.arcgis.com/3.10/init.js:75:350)↵ at http://js.arcgis.com/3.10/init.js:191:300"
  8. __proto__: d


-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

<!DOCTYPE html>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">

<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">

<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css">

<script src="http://js.arcgis.com/3.10/"></script>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.0/jquery.min.js"></script>

</head>

 

<body>

<div id="mapDiv"></div>

 

<script type="text/javascript">

var map, featureLayer;

 

var featureURL = "http://dev.consciousglobalchange.org/arcgis/rest/services/MEP/webmap_catalog/FeatureServer/0";

 

require(["esri/map", "esri/layers/FeatureLayer", "dojo/domReady!"],function(Map,FeatureLayer) {

map = new Map("mapDiv", {

     center: [-56.049, 38.485],

     zoom: 3,

     basemap: "streets"

});

 

var featureLayer = new FeatureLayer(featureURL);

map.addLayer(featureLayer);

 

</body>

</html>

Outcomes