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 (↵ at↵ at c (↵ at d (↵ at resolve.callback (↵ at c (↵ at d (↵ at resolve.callback (↵ at"
  8. __proto__: d


<!DOCTYPE html>



<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="">

<script src=""></script>

<script src="//"></script>




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


<script type="text/javascript">

var map, featureLayer;


var featureURL = "";


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);