<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error: Unable to complete operation in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321029#M29544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please provide more information on what you trying to do to encounter this error. I am guessing you are using Printing tools or Geometry service. This error usually comes up when you pass in the required parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Mar 2013 22:00:01 GMT</pubDate>
    <dc:creator>SubaKrishnan</dc:creator>
    <dc:date>2013-03-27T22:00:01Z</dc:date>
    <item>
      <title>Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321028#M29543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I keep getting the following error in firebug&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;BR /&gt;Error: Unable to complete operation.&lt;BR /&gt;.cache["esri/utils"]/&amp;lt;/esri._request/req.load()?v=3.2 (line 34)&lt;BR /&gt;.cache["dojo/_base/xhr"]/&amp;lt;/dojo._ioSetArgs/&amp;lt;()?v=3.2 (line 15)&lt;BR /&gt;_1c6()?v=3.2 (line 15)&lt;BR /&gt;_1c4()?v=3.2 (line 15)&lt;BR /&gt;()?v=3.2 (line 15)&lt;BR /&gt;_1c6()?v=3.2 (line 15)&lt;BR /&gt;_1c4()?v=3.2 (line 15)&lt;BR /&gt;()?v=3.2 (line 15)&lt;BR /&gt;.cache["dojo/_base/xhr"]/&amp;lt;/_437()?v=3.2 (line 15)&lt;BR /&gt;.cache["dojo/_base/xhr"]/&amp;lt;/_430/func()?v=3.2 (line 15)&lt;BR /&gt;.cache["dojo/_base/xhr"]/&amp;lt;/_430()?v=3.2 (line 15)&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt;...eateSegments:function(_764){_764.shape.path=_764.vmlPath;_764.segmented=false;_7...&lt;BR /&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 15:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321028#M29543</guid>
      <dc:creator>AlexGolebiewski</dc:creator>
      <dc:date>2013-03-27T15:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321029#M29544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Please provide more information on what you trying to do to encounter this error. I am guessing you are using Printing tools or Geometry service. This error usually comes up when you pass in the required parameters.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Mar 2013 22:00:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321029#M29544</guid>
      <dc:creator>SubaKrishnan</dc:creator>
      <dc:date>2013-03-27T22:00:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321030#M29545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am just trying to display a map with counties and national parks. see code below.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
dojo.require("dijit.dijit"); // optimize: load dijit layer
dojo.require("dijit.layout.BorderContainer");
dojo.require("dijit.layout.ContentPane");
dojo.require("esri.map");
dojo.require("dijit.layout.AccordionContainer");
dojo.require("dojo.fx");// needed if use jsapi 3.0 or 3.2
dojo.require("agsjs.dijit.TOC");
dojo.require("esri.utils");
dojo.require("esri.layers.FeatureLayer");
dojo.require("esri.tasks.geometry");
dojo.require("esri.dijit.Scalebar");
dojo.require("esri.graphic");

var countyLayer;
var parkLayer;
var trailsLayer;
var trailsFeatureLayer;
var parkBoundsLayer;
var map;
function init() {
esri.config.defaults.io.timeout = 300000;
//map = null;
map = new esri.Map("mapDiv", { extent: esri.geometry.geographicToWebMercator(new esri.geometry.Extent(-105.5,37.4,-97.1,42.8, new esri.SpatialReference({wkid:4326}))) });
var initBaseMap = new esri.layers.ArcGISTiledMapServiceLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/");
map.addLayer(initBaseMap);
var query = new esri.tasks.Query();
query.returnGeometry = true;
query.where = "(STATE = '08' AND COUNTY = '013') OR (STATE = '08' AND COUNTY = '069') OR (STATE = '08' AND COUNTY = '123') OR (STATE = '56' AND COUNTY = '001') OR (STATE = '56' AND COUNTY = '021')";
parkLayer = new esri.layers.ArcGISDynamicMapServiceLayer("https://insidemapservices.nps.gov/arcgis/rest/services/NPSUnits/MapServer", {
id: 'parkLayer',
opacity: 1.0
});
trailsLayer = new esri.layers.ArcGISDynamicMapServiceLayer("https://insidemapservices.nps.gov/arcgis/rest/services/NPSNationalTrails/MapServer", {
id: 'trailsLayer',
opacity: 1.0
});
var countiesSelectionSymbol = new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([82, 132, 250, 0.2]));
countiesSelectionSymbol.setOutline(new esri.symbol.SimpleLineSymbol("solid", new dojo.Color("blue"), 2));
countyLayer = new esri.layers.FeatureLayer("https://insidemapservices.nps.gov/arcgis/rest/services/USCounties2000/MapServer/0", {
outFields: ["*"],
mode: esri.layers.FeatureLayer.MODE_SELECTION
});
countyLayer.setSelectionSymbol(countiesSelectionSymbol);
map.addLayer(countyLayer);
parkBoundsLayer = new esri.layers.FeatureLayer("https://insidemapservices.nps.gov/arcgis/rest/services/NPSUnits/MapServer/0", {
outFields: ["*"],
mode: esri.layers.FeatureLayer.MODE_SELECTION
});
var parkBoundsSelectionSymbol = new esri.symbol.SimpleFillSymbol().setColor(new dojo.Color([250, 50, 2, 0.5]));
parkBoundsSelectionSymbol.setOutline(new esri.symbol.SimpleLineSymbol("solid", new dojo.Color("red"), 3));
parkBoundsLayer.setSelectionSymbol(parkBoundsSelectionSymbol);
map.addLayer(parkBoundsLayer);
trailsFeatureLayer = new esri.layers.FeatureLayer("https://insidemapservices.nps.gov/arcgis/rest/services/NPSNationalTrails/MapServer/0", {
outFields: ["*"],
mode: esri.layers.FeatureLayer.MODE_SELECTION
});
var trailsFeatureSelectionSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([102, 0, 204]), 3);
trailsFeatureLayer.setSelectionSymbol(trailsFeatureSelectionSymbol);
map.addLayer(trailsFeatureLayer);
countyLayer.queryFeatures(query, function (featureSet) {
selectCounties(query);
if (featureSet.features.length &amp;gt; 0 &amp;amp;&amp;amp; featureSet.features[0].geometry.type === "polygon") {
dojo.forEach(featureSet.features, function (feature) {
selectParks(feature.geometry);
selectTrails(feature.geometry);
});
}
}, function () { });
dojo.connect(map, 'onLayersAddResult', function () {
var toc = new agsjs.dijit.TOC(
{
map: map,
layerInfos: [
{
layer: parkLayer,
title: "NPS Parks"
},
{
layer: trailsLayer,
title: "NPS - DOI Trails"
}
]
},
'tocDiv'
);
toc.startup();
});
map.addLayers([trailsLayer, parkLayer]);
}
dojo.ready(init);
function selectCounties(query) {
var deferred;
deferred = countyLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (features) {
//Zoom map to entire extent of counties
map.setExtent(esri.graphicsExtent(features).expand(2));
});
return deferred;
}
function selectParks(polygon) {
var query = new esri.tasks.Query();
query.geometry = polygon.getExtent();
query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
parkBoundsLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_ADD, showParkNames(), function () { });
}
function showParkNames(features) {
dojo.forEach(features, function (feature) {
var featureText = features.attributes.UNIT_TYPE + ' - ' + feature.attributes.PARKNAME + ' (' + feature.attributes.UNIT_CODE + ') ';
dojo.create("li", { innerHTML: featureText }, dojo.byId("parks"));
});
}
function selectTrails(polygon) {
var query = new esri.tasks.Query();
query.geometry = polygon.getExtent();
query.spatialRelationship = esri.tasks.Query.SPATIAL_REL_INTERSECTS;
trailsFeatureLayer.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_ADD, showTrailNames(), function () { });
}
function showTrailNames(features) {
dojo.forEach(features, function (feature) {
var featureText = feature.attributes.NationalTrailDesignation;
dojo.create("li", { innerHTML: featureText }, dojo.byId("parks"));
});
} 
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:14:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321030#M29545</guid>
      <dc:creator>AlexGolebiewski</dc:creator>
      <dc:date>2021-12-11T15:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321031#M29546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have the same issue with my application. It was running fine all this while but this error message start appearing since last week. I have checked my code but cannot find any reason for this to happen. Interestingly, in my case the error message appears at the initial load. My dynamic combobox is not populated and some of my functions such as zoom etc. do not work. Refreshing the app takes care of these issues, but another refresh gives the same error message. So every alternate refresh gives the error message. Also, when this error message appears, my functions run only when I click the relevant button twice. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is quite a general overview as it'll be hard to share my entire code to figure out where the problem lies. If too many people are facing this issue, then maybe ESRI should look into it from there end.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Samir&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Apr 2013 12:12:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321031#M29546</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-04-02T12:12:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321032#M29547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can anyone help please?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 12:56:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321032#M29547</guid>
      <dc:creator>AlexGolebiewski</dc:creator>
      <dc:date>2013-05-30T12:56:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321033#M29548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Can anyone help please?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I resolved my problem by focusing on my proxy page. It turned out that my proxy page was not working. I followed the instructions to set this up and I could see my proxy doing its job.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 13:02:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321033#M29548</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-05-30T13:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321034#M29549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I resolved my problem by focusing on my proxy page. It turned out that my proxy page was not working. I followed the instructions to set this up and I could see my proxy doing its job.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you have a link to a good walk through on how to set up the proxy by any chance?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 13:09:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321034#M29549</guid>
      <dc:creator>AlexGolebiewski</dc:creator>
      <dc:date>2013-05-30T13:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Unable to complete operation</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321035#M29550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you have a link to a good walk through on how to set up the proxy by any chance?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I used the steps suggested by ESRI which can be accessed here: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_proxy.html"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/jshelp/ags_proxy.html&lt;/A&gt;&lt;SPAN&gt;. Make sure that you add the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;serverUrls&lt;/SPAN&gt;&lt;SPAN&gt; in the proxy file as mentioned in this document. I hope this is helpful.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2013 15:19:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-unable-to-complete-operation/m-p/321035#M29550</guid>
      <dc:creator>SamirGambhir</dc:creator>
      <dc:date>2013-05-30T15:19:11Z</dc:date>
    </item>
  </channel>
</rss>

