<?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: Extract Data Task - Clip and Ship Not exporting in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466490#M43223</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your explanation. One more quick question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have a group of lines like a tic tac toe grid and I only want the vertical lines by doing what you say &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what you should do is to create a extent that cover all the results and then use this extent to create a featureset&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; won't this also select the horizontal lines too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 May 2011 21:00:43 GMT</pubDate>
    <dc:creator>BenSayers</dc:creator>
    <dc:date>2011-05-13T21:00:43Z</dc:date>
    <item>
      <title>Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466478#M43211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi there,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to replicate the Clip and Ship Geoprocessing sample using my own data and I am having trouble getting the data to export.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting a zip file exported and downloaded but the shapefile is empty although the .DBF does have the column names.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My data is held in Oracle in British National Grid (SRID 27700) and the map uses web mercator (102100). I am setting the geoprocessing output spatial refernce but this does not seem to affect anything.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;gp = new esri.tasks.Geoprocessor("http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGLTools/GPServer/Extract%20Data%20Task");
gp.setOutSpatialReference({wkid:27700});&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have any idea what I need to do to fix this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 May 2011 14:25:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466478#M43211</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2011-05-09T14:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466479#M43212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi there,&lt;BR /&gt;I am trying to replicate the Clip and Ship Geoprocessing sample using my own data and I am having trouble getting the data to export.&lt;BR /&gt;&lt;BR /&gt;I am getting a zip file exported and downloaded but the shapefile is empty although the .DBF does have the column names.&lt;BR /&gt;&lt;BR /&gt;My data is held in Oracle in British National Grid (SRID 27700) and the map uses web mercator (102100). I am setting the geoprocessing output spatial refernce but this does not seem to affect anything.&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;gp = new esri.tasks.Geoprocessor("http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGLTools/GPServer/Extract%20Data%20Task");
gp.setOutSpatialReference({wkid:27700});&lt;/PRE&gt;&lt;BR /&gt;Does anyone have any idea what I need to do to fix this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;if you set up your schema AOI polygon feature class to wkid 27700 and your mxd (that contains the gp layer and your clip layers) data frame to wkid 102100. you should be good to go.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466479#M43212</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T20:41:46Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466480#M43213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hzhu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your continued help. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you let me know what you mean by &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;"set up your schema AOI polygon feature class"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do you mean in the ExtractDataTask model? Or in the Javascript code, something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clipFeatureSet = new esri.tasks.FeatureSet();
clipFeatureSet.setSpatialReference(27700)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466480#M43213</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2021-12-11T20:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466481#M43214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;hzhu,&lt;BR /&gt;Thank you for your continued help. &lt;BR /&gt;Can you let me know what you mean by &lt;SPAN style="font-style:italic;"&gt;"set up your schema AOI polygon feature class"&lt;/SPAN&gt;&lt;BR /&gt;Do you mean in the ExtractDataTask model? Or in the Javascript code, something like:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clipFeatureSet = new esri.tasks.FeatureSet();
clipFeatureSet.setSpatialReference(27700)&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you,&lt;BR /&gt;Ben&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I mean in your ExtractData model. Modify your AOI parameter -&amp;gt;Data Type -&amp;gt; Import schema and symbology from:. The polygon feature class (your schema) should have SR as 27700. What happen is that even though you draw or add a AOI on the web map and your mxd (both has WKID 10200), its internal SR is still 27700 so that your AOI and cliped layer are in the same SR-27700.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466481#M43214</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T20:41:51Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466484#M43217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've still not got this working, I feel like I've been banging my head against brick wall for well over a week now. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have tried re-writing my JavaScript Page and I have also re-published the geoprocessing task to the server again but I'm not getting anywhere.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The link to my Geoprocessing task is: &lt;/SPAN&gt;&lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;The link to my dataset is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGL_vers3/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGL_vers3/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code I am not rying to run is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function qtResults(fset){
 var resultFeatures = fset.features;
 var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
 for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {
&amp;nbsp; var graphic = resultFeatures&lt;I&gt;;
&amp;nbsp; graphic.setSymbol(fLineSymbol);
&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp; clipFeature.push(graphic)

 }
 
 clipFeatureSet.features = clipFeature;
 var dlFormat = 'Shapefile - SHP - .shp';
params2 = {
&amp;nbsp; "Layers_to_Clip": clipLayers,
&amp;nbsp; "Area_of_Interest": clipFeatureSet,
&amp;nbsp;&amp;nbsp; "Feature_Format": dlFormat
 }
 
}
function action(){

 esri.show(loading);
 if (confirm('Ready to Download?')) {
&amp;nbsp; gp.submitJob(params2, completeCallback, statusCallback, function(error){
&amp;nbsp;&amp;nbsp; alert(error);
&amp;nbsp;&amp;nbsp; esri.hide(loading)
&amp;nbsp; });
 }&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
function download(){

 var seismicCount = (jQuery("#selectedSeismicTable").getGridParam("reccount"));
 var wellCount = (jQuery("#selectedWellTable").getGridParam("reccount"));
 var rpCount = (jQuery("#selectedRPTable").getGridParam("reccount"));
 if (seismicCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('2D Seismic');
&amp;nbsp; for (i = 1; i &amp;lt; seismicCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedSeismicTable').getCell(i, 1);
&amp;nbsp;&amp;nbsp; //alert(ref);
&amp;nbsp;&amp;nbsp; //doFind(ref);
&amp;nbsp;&amp;nbsp; twoDQuery.where = "UKOGL_LINE_REF = "+ref;
&amp;nbsp; //alert(twoDQuery.where);
&amp;nbsp;&amp;nbsp; twoDQueryTask.execute(twoDQuery,qtResults);
&amp;nbsp; }
 };
 if (rpCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Regional Profiles');
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1; i &amp;lt; rpCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedRPTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (wellCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Wells');
&amp;nbsp; for (i = 1; i &amp;lt; wellCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedWellTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };


}&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The error I am getting from my Tomcat error log is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;13-May-2011 16:48:57 com.esri.rest.gpserver.GPUtil a&lt;/PRE&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE: Invalid param value: {"geometryType":"esriGeometryPolyline","features":[{"geometry":{"paths":[[[125125.00000000006,856615],[125077.00000000012,856599.0000000006],[124837.00000000017,856536.0000000001],[124595.00000000006,856481.0000000005],[124570.00000000017,856473.0000000008]]],"spatialReference":{"wkid":27700}},"attributes":{"UKOGL_LINE_REF":18096,"LINE_NAME":"LB-1A"}}],"sr":{"wkid":27700}}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;com.esri.rest.util.json.JSONException: JSONObject["rings"] not found.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.util.json.JSONObject.get(JSONObject.java:372)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.util.json.JSONObject.getJSONArray(JSONObject.java:448)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.ags.AGSUtil.getGeometry(AGSUtil.java:791)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.ags.AGSUtil.getGeometry(AGSUtil.java:745)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPUtil.a(GPUtil.java:197)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPUtil.createGPFeatureRecordSetLayer(GPUtil.java:105)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPTaskServlet.a(GPTaskServlet.java:1014)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPTaskServlet.a(GPTaskServlet.java:748)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPTaskServlet.service(GPTaskServlet.java:118)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.gpserver.GPServerServlet.service(GPServerServlet.java:69)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.catalog.CatalogServlet.service(CatalogServlet.java:181)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.DispatchServlet.service(DispatchServlet.java:117)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.security.SecurityFilter.doFilter(SecurityFilter.java:77)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at com.esri.rest.RestFilter.doFilter(RestFilter.java:76)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; at java.lang.Thread.run(Unknown Source)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;13-May-2011 16:48:57 com.esri.rest.gpserver.GPTaskServlet a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;SEVERE: Unable to create the GP Value for parameter 'Area_of_Interest'&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466484#M43217</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2021-12-11T20:41:58Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466485#M43218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I've still not got this working, I feel like I've been banging my head against brick wall for well over a week now. &lt;BR /&gt;I have tried re-writing my JavaScript Page and I have also re-published the geoprocessing task to the server again but I'm not getting anywhere.&lt;BR /&gt;The link to my Geoprocessing task is: &lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task&lt;/A&gt;&lt;BR /&gt;The link to my dataset is:&lt;BR /&gt;&lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGL_vers3/MapServer" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/UKOGL_vers3/MapServer&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The code I am not rying to run is:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;function qtResults(fset){
 var resultFeatures = fset.features;
 var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
 for (var i = 0, il = resultFeatures.length; i &amp;lt; il; i++) {
&amp;nbsp; var graphic = resultFeatures&lt;I&gt;;
&amp;nbsp; graphic.setSymbol(fLineSymbol);
&amp;nbsp; map.graphics.add(graphic);
&amp;nbsp; clipFeature.push(graphic)

 }
 
 clipFeatureSet.features = clipFeature;
 var dlFormat = 'Shapefile - SHP - .shp';
params2 = {
&amp;nbsp; "Layers_to_Clip": clipLayers,
&amp;nbsp; "Area_of_Interest": clipFeatureSet,
&amp;nbsp;&amp;nbsp; "Feature_Format": dlFormat
 }
 
}
function action(){

 esri.show(loading);
 if (confirm('Ready to Download?')) {
&amp;nbsp; gp.submitJob(params2, completeCallback, statusCallback, function(error){
&amp;nbsp;&amp;nbsp; alert(error);
&amp;nbsp;&amp;nbsp; esri.hide(loading)
&amp;nbsp; });
 }&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; 
}
function download(){

 var seismicCount = (jQuery("#selectedSeismicTable").getGridParam("reccount"));
 var wellCount = (jQuery("#selectedWellTable").getGridParam("reccount"));
 var rpCount = (jQuery("#selectedRPTable").getGridParam("reccount"));
 if (seismicCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('2D Seismic');
&amp;nbsp; for (i = 1; i &amp;lt; seismicCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedSeismicTable').getCell(i, 1);
&amp;nbsp;&amp;nbsp; //alert(ref);
&amp;nbsp;&amp;nbsp; //doFind(ref);
&amp;nbsp;&amp;nbsp; twoDQuery.where = "UKOGL_LINE_REF = "+ref;
&amp;nbsp; //alert(twoDQuery.where);
&amp;nbsp;&amp;nbsp; twoDQueryTask.execute(twoDQuery,qtResults);
&amp;nbsp; }
 };
 if (rpCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Regional Profiles');
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1; i &amp;lt; rpCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedRPTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (wellCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Wells');
&amp;nbsp; for (i = 1; i &amp;lt; wellCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedWellTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };


}&lt;/I&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;The error I am getting from my Tomcat error log is:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;13-May-2011 16:48:57 com.esri.rest.gpserver.GPUtil a
SEVERE: Invalid param value: {"geometryType":"esriGeometryPolyline","features":[{"geometry":{"paths":[[[125125.00000000006,856615],[125077.00000000012,856599.0000000006],[124837.00000000017,856536.0000000001],[124595.00000000006,856481.0000000005],[124570.00000000017,856473.0000000008]]],"spatialReference":{"wkid":27700}},"attributes":{"UKOGL_LINE_REF":18096,"LINE_NAME":"LB-1A"}}],"sr":{"wkid":27700}}
com.esri.rest.util.json.JSONException: JSONObject["rings"] not found.
 at com.esri.rest.util.json.JSONObject.get(JSONObject.java:372)
 at com.esri.rest.util.json.JSONObject.getJSONArray(JSONObject.java:448)
 at com.esri.rest.ags.AGSUtil.getGeometry(AGSUtil.java:791)
 at com.esri.rest.ags.AGSUtil.getGeometry(AGSUtil.java:745)
 at com.esri.rest.gpserver.GPUtil.a(GPUtil.java:197)
 at com.esri.rest.gpserver.GPUtil.createGPFeatureRecordSetLayer(GPUtil.java:105)
 at com.esri.rest.gpserver.GPTaskServlet.a(GPTaskServlet.java:1014)
 at com.esri.rest.gpserver.GPTaskServlet.a(GPTaskServlet.java:748)
 at com.esri.rest.gpserver.GPTaskServlet.service(GPTaskServlet.java:118)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 at com.esri.rest.gpserver.GPServerServlet.service(GPServerServlet.java:69)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 at com.esri.rest.catalog.CatalogServlet.service(CatalogServlet.java:181)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:691)
 at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:469)
 at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:364)
 at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)
 at com.esri.rest.DispatchServlet.service(DispatchServlet.java:117)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at com.esri.rest.security.SecurityFilter.doFilter(SecurityFilter.java:77)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at com.esri.rest.RestFilter.doFilter(RestFilter.java:76)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
 at org.apache.catalina.authenticator.SingleSignOn.invoke(SingleSignOn.java:393)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874)
 at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
 at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
 at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
 at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:689)
 at java.lang.Thread.run(Unknown Source)
13-May-2011 16:48:57 com.esri.rest.gpserver.GPTaskServlet a
SEVERE: Unable to create the GP Value for parameter 'Area_of_Interest'&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;your AOI parameter has to be a featureSet with Geometry type as POLYGON!!. Looked at your code and your clipFeature's geometryType is esriGeometryPolyline !! ( {"geometryType":"esriGeometryPolyline","features":[{"geometry":{"paths":[[[125125.00000000006,856615],[125077.00000000012,856599.0000000006],[124837.00000000017,856536.0000000001],[124595.00000000006,856481.0000000005],[124570.00000000017,856473.0000000008]]],"spatialReference":{"wkid":27700}},"attributes":{"UKOGL_LINE_REF":18096,"LINE_NAME":"LB-1A"}}],"sr":{"wkid":27700}} )&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:42:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466485#M43218</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T20:42:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466486#M43219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;your AOI parameter has to be a featureSet with Geometry type as POLYGON!!. Looked at your code and your clipFeature's geometryType is esriGeometryPolyline !! ( {"geometryType":"esriGeometryPolyline","features":[{"geometry":{"paths":[[[125125.00000000006,856615],[125077.00000000012,856599.0000000006],[124837.00000000017,856536.0000000001],[124595.00000000006,856481.0000000005],[124570.00000000017,856473.0000000008]]],"spatialReference":{"wkid":27700}},"attributes":{"UKOGL_LINE_REF":18096,"LINE_NAME":"LB-1A"}}],"sr":{"wkid":27700}} )&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hzhu,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am unable to get a polygon featureSet using esri.graphicsExtent(map.graphics). Is there another way I can try?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 17:26:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466486#M43219</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2011-05-13T17:26:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466487#M43220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hzhu,&lt;BR /&gt;I am unable to get a polygon featureSet using esri.graphicsExtent(map.graphics). Is there another way I can try?&lt;BR /&gt;Many thanks,&lt;BR /&gt;Ben&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;From you code, i create a featureSet json like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;{"features" :[{ "geometry" :{"rings" : [[[125125.00000000006, 856615], [125077.00000000012, 856599.0000000006], [124837.00000000017, 856536.0000000001], [124595.00000000006, 856481.0000000005], [124570.00000000017, 856473.0000000008], [125125.00000000006, 856615]]]}}]}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Put it into your AOI parameter at your service url: &lt;/SPAN&gt;&lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob&lt;/A&gt;&lt;SPAN&gt;. Test it. if your AOI set up is OK, you should get some results.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 17:51:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466487#M43220</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-13T17:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466488#M43221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;From you code, i create a featureSet json like this:&lt;BR /&gt;&lt;BR /&gt;{"features" :[{ "geometry" :{"rings" : [[[125125.00000000006, 856615], [125077.00000000012, 856599.0000000006], [124837.00000000017, 856536.0000000001], [124595.00000000006, 856481.0000000005], [124570.00000000017, 856473.0000000008], [125125.00000000006, 856615]]]}}]}&lt;BR /&gt;&lt;BR /&gt;Put it into your AOI parameter at your service url: &lt;A href="http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob" rel="nofollow noopener noreferrer" target="_blank"&gt;http://maps.lynxinfo.co.uk:8080/LIVE/services/UKOGL/ClipAndShip/GPServer/Extract%20Data%20Task/submitJob&lt;/A&gt;. Test it. if your AOI set up is OK, you should get some results.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry to be really basic but I can see how you've taken this from the Tomcat error I have pasted, but how to I get create this using the JavaScript API? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;IS there a way I can set the featureSet explicitly as a polygon? As this is what is creating the polyline&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clipFeatureSet = new esri.tasks.FeatureSet();
var graphic = new esri.Graphic();
graphic.geometry = esri.graphicsExtent(map.graphics.graphics);
clipFeature.push(graphic);
clipFeatureSet.features = clipFeature;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;DO I need to add the Polygon extent to the map.graphics?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466488#M43221</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2021-12-11T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466489#M43222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Sorry to be really basic but I can see how you've taken this from the Tomcat error I have pasted, but how to I get create this using the JavaScript API? &lt;BR /&gt;IS there a way I can set the featureSet explicitly as a polygon? As this is what is creating the polyline&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var clipFeatureSet = new esri.tasks.FeatureSet();
var graphic = new esri.Graphic();
graphic.geometry = esri.graphicsExtent(map.graphics.graphics);
clipFeature.push(graphic);
clipFeatureSet.features = clipFeature;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;DO I need to add the Polygon extent to the map.graphics?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If all your graphics in your map.graphics are polygons, all you need to do push every graphic into clipFeatureSet like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var clipFeatureSet = new esri.tasks.FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var clipFeature =[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;forEach(map.graphics.graphics, function(graphic)(&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //if (graphic.geometry.type ="polygon")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clipFeature.push (graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;clipFeatureSet.features = clipFeature;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The most important thing is make sure that each feature (graphic) in AOI featureset has to be a feature with geometry type as "polygon".&amp;nbsp; Usually you either draw or specify certain polygon graphic(s) as your AOI instead of using all the grahics on your map as AOI. You really need to look at the ESRI sample to understand how to set up your AOI parameter. &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_clipasync.html" rel="nofollow noopener noreferrer" target="_blank"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jssamples/gp_clipasync.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Additionally, from what i understand is you add all query results on the map and want to download them. what you should do is to create a extent that cover all the results and then use this extent to create a featureset:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var graphic= new esri.Graphic(esri.graphicsExtent(results.features));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var clipFeatureSet = new esri.tasks.FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;var clipFeature =[];&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;clipFeature.push (graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;clipFeatureSet.features = clipFeature;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:42:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466489#M43222</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T20:42:06Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466490#M43223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for your explanation. One more quick question:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Say I have a group of lines like a tic tac toe grid and I only want the vertical lines by doing what you say &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;what you should do is to create a extent that cover all the results and then use this extent to create a featureset&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt; won't this also select the horizontal lines too?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 May 2011 21:00:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466490#M43223</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2011-05-13T21:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466491#M43224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Thank you for your explanation. One more quick question:&lt;BR /&gt;Say I have a group of lines like a tic tac toe grid and I only want the vertical lines by doing what you say&amp;nbsp; won't this also select the horizontal lines too?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Whatever the extent polygon feature (clipFeatureSet) covers will be cliped and downloaded. So you might have to do some code logic to create the clipFeatureSet cover only the vertical lines.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 12:31:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466491#M43224</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-16T12:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466492#M43225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If all your graphics in your map.graphics are polygons, all you need to do push every graphic into clipFeatureSet like this:&lt;BR /&gt;var clipFeatureSet = new esri.tasks.FeatureSet();&lt;BR /&gt;var clipFeature =[];&lt;BR /&gt;forEach(map.graphics.graphics, function(graphic)(&lt;BR /&gt;//if (graphic.geometry.type ="polygon")&lt;BR /&gt;clipFeature.push (graphic);&lt;BR /&gt;));&lt;BR /&gt;clipFeatureSet.features = clipFeature;&lt;BR /&gt;The most important thing is make sure that each feature (graphic) in AOI featureset has to be a feature with geometry type as "polygon". Usually you either draw or specify certain polygon graphic(s) as your AOI instead of using all the grahics on your map as AOI. You really need to look at the ESRI sample to understand how to set up your AOI parameter. &lt;A href="http://help.arcgis.com/en/webapi/jav...clipasync.html"&gt;http://help.arcgis.com/en/webapi/jav...clipasync.html&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Additionally, from what i understand is you add all query results on the map and want to download them. what you should do is to create a extent that cover all the results and then use this extent to create a featureset:&lt;BR /&gt;&lt;BR /&gt;var graphic= new esri.Graphic(esri.graphicsExtent(results.features));&lt;BR /&gt;var clipFeatureSet = new esri.tasks.FeatureSet();&lt;BR /&gt;var clipFeature =[];&lt;BR /&gt;&lt;BR /&gt;clipFeature.push (graphic);&lt;BR /&gt;clipFeatureSet.features = clipFeature;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;None of the features that I am selecting via the querytask are polygons. They are points and polylines. I think from what I now understand that I need a way of taking these and creating a creating a small buffer around them individually to create polygons, and then using these polygons to create a Multipolygon Ring FeatureSet to pass as the AOI for the ExtractDataTask. Am I correct in thinking this? And if so how can I use the buffer gp task as this too needs a geometry for its input?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ben&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 14:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466492#M43225</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2011-05-17T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466493#M43226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;None of the features that I am selecting via the querytask are polygons. They are points and polylines. I think from what I now understand that I need a way of taking these and creating a creating a small buffer around them individually to create polygons, and then using these polygons to create a Multipolygon Ring FeatureSet to pass as the AOI for the ExtractDataTask. Am I correct in thinking this? And if so how can I use the buffer gp task as this too needs a geometry for its input?&lt;BR /&gt;&lt;BR /&gt;Many thanks,&lt;BR /&gt;Ben&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes!!! you are on the right track. Use GeometryService's buffer method to create buffer polygons instead. Here is doc you can look at: &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm"&gt;http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 14:51:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466493#M43226</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2011-05-17T14:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466495#M43228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Alex, you may want to make a new thread for your question. This thread is many years old.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2014 16:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466495#M43228</guid>
      <dc:creator>JonathanUihlein</dc:creator>
      <dc:date>2014-04-15T16:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466496#M43229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Alex, you may want to make a new thread for your question. This thread is many years old.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I did but nobody really answered.&amp;nbsp; My problem is very similar to Ben's. I thought one of these guys who have previously worked on this topic could help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2014 21:55:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466496#M43229</guid>
      <dc:creator>AlexGole1</dc:creator>
      <dc:date>2014-05-01T21:55:48Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466497#M43230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alex,&lt;/P&gt;&lt;P&gt;Did you ever figure out how to use a query to clip the data?&amp;nbsp; I am in need of this too.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Jul 2014 17:00:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466497#M43230</guid>
      <dc:creator>AndrewKeith1</dc:creator>
      <dc:date>2014-07-08T17:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466498#M43231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am also working on same king of application If you find a solution can you please share&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 19:06:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466498#M43231</guid>
      <dc:creator>AnudeepGorantla</dc:creator>
      <dc:date>2018-10-10T19:06:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466482#M43215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I mean in your ExtractData model. Modify your AOI parameter -&amp;gt;Data Type -&amp;gt; Import schema and symbology from:. The polygon feature class (your schema) should have SR as 27700. What happen is that even though you draw or add a AOI on the web map and your mxd (both has WKID 10200), its internal SR is still 27700 so that your AOI and cliped layer are in the same SR-27700.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried that and unfortunately I still can't get this working. I know have a layer in my MXD called AOI with the SRID 27700 and I have used this&amp;nbsp; as the &lt;/SPAN&gt;&lt;SPAN style="font-style:italic;"&gt;Import schema and symbology from&lt;/SPAN&gt;&lt;SPAN&gt; part of the Extract Data Task model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Using Firebug, I think the problem is with passing the AOI geometry from the graphics. Is this the way to do it:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
function showTResults(results){
dojo.forEach(results, function(result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature;
&amp;nbsp;&amp;nbsp; var fMarkerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fPolygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (graphic.geometry.type) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; case "point":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fMarkerSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "polyline":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fLineSymbol);
&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "polygon":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fPolygonSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 map.graphics.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; })

 ext = esri.graphicsExtent(graphics);

function doFind(textSearch) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.searchText = textSearch;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; find.execute(params, showTResults);
}

function download(){
 var clipLayers = [];
 var seismicCount = (jQuery("#selectedSeismicTable").getGridParam("reccount"));
 var wellCount = (jQuery("#selectedWellTable").getGridParam("reccount"));
 var rpCount = (jQuery("#selectedRPTable").getGridParam("reccount"));
 if (seismicCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('2D Seismic');
&amp;nbsp; for (i = 1; i &amp;lt; seismicCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedSeismicTable').getCell(i, 1);
&amp;nbsp;&amp;nbsp; //alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (rpCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Regional Profiles');
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1; i &amp;lt; rpCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedRPTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (wellCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Wells');
&amp;nbsp; for (i = 1; i &amp;lt; wellCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedWellTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };

var dlFormat = 'Shapefile - SHP - .shp';

 var params2 = {
&amp;nbsp; "Layers_to_Clip": clipLayers,
&amp;nbsp; "Area_of_Interest": ext,
&amp;nbsp;&amp;nbsp; "Feature_Format": dlFormat
 }
 esri.show(loading);
 gp.submitJob(params2, completeCallback, statusCallback, function(error){
&amp;nbsp; alert(error);
 esri.hide(loading)
 });
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your continued help. I know I'm so close to getting this working but somethings not quite right.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466482#M43215</guid>
      <dc:creator>BenSayers</dc:creator>
      <dc:date>2021-12-11T20:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: Extract Data Task - Clip and Ship Not exporting</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466483#M43216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I tried that and unfortunately I still can't get this working. I know have a layer in my MXD called AOI with the SRID 27700 and I have used this&amp;nbsp; as the &lt;SPAN style="font-style:italic;"&gt;Import schema and symbology from&lt;/SPAN&gt; part of the Extract Data Task model.&lt;BR /&gt;&lt;BR /&gt;Using Firebug, I think the problem is with passing the AOI geometry from the graphics. Is this the way to do it:&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt; 
function showTResults(results){
dojo.forEach(results, function(result) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var graphic = result.feature;
&amp;nbsp;&amp;nbsp; var fMarkerSymbol = new esri.symbol.SimpleMarkerSymbol(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE, 10, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 0, 0]), 1), new dojo.Color([0, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fLineSymbol = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASH, new dojo.Color([255, 0, 0]), 3);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var fPolygonSymbol = new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_NONE, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOT, new dojo.Color([255, 0, 0]), 2), new dojo.Color([255, 255, 0, 0.25]));
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; switch (graphic.geometry.type) {
&amp;nbsp;&amp;nbsp;&amp;nbsp; case "point":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fMarkerSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "polyline":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fLineSymbol);
&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; case "polygon":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.setSymbol(fPolygonSymbol);
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; break;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }
 map.graphics.add(graphic);
&amp;nbsp;&amp;nbsp;&amp;nbsp; })

 ext = esri.graphicsExtent(graphics);

function doFind(textSearch) {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; params.searchText = textSearch;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; find.execute(params, showTResults);
}

function download(){
 var clipLayers = [];
 var seismicCount = (jQuery("#selectedSeismicTable").getGridParam("reccount"));
 var wellCount = (jQuery("#selectedWellTable").getGridParam("reccount"));
 var rpCount = (jQuery("#selectedRPTable").getGridParam("reccount"));
 if (seismicCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('2D Seismic');
&amp;nbsp; for (i = 1; i &amp;lt; seismicCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedSeismicTable').getCell(i, 1);
&amp;nbsp;&amp;nbsp; //alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (rpCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Regional Profiles');
&amp;nbsp;&amp;nbsp;&amp;nbsp; for (i = 1; i &amp;lt; rpCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedRPTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };
 if (wellCount &amp;gt; 0) {
&amp;nbsp; clipLayers.push('Wells');
&amp;nbsp; for (i = 1; i &amp;lt; wellCount + 1; i++) {
&amp;nbsp;&amp;nbsp; var ref = $('#selectedWellTable').getCell(i, 1);
&amp;nbsp; // alert(ref);
&amp;nbsp;&amp;nbsp; doFind(ref);
&amp;nbsp; }
 };

var dlFormat = 'Shapefile - SHP - .shp';

 var params2 = {
&amp;nbsp; "Layers_to_Clip": clipLayers,
&amp;nbsp; "Area_of_Interest": ext,
&amp;nbsp;&amp;nbsp; "Feature_Format": dlFormat
 }
 esri.show(loading);
 gp.submitJob(params2, completeCallback, statusCallback, function(error){
&amp;nbsp; alert(error);
 esri.hide(loading)
 });
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thank you for your continued help. I know I'm so close to getting this working but somethings not quite right.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The Parameter "Area_of_Interest" is a featureSet, not just a geometry (polygon or extent). You should define it like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; var graphic = new esri.Graphic();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; graphic.geometry = ext;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; /* parameter AOI */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var clipFeature = [];&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clipFeature.push(graphic);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var clipFeatureSet = new esri.tasks.FeatureSet();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clipFeatureSet.features = clipFeature;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var params2 = {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "Layers_to_Clip": clipLayers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; "Area_of_Interest": clipFeatureSet,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; "Feature_Format": dlFormat&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Try test your GP layer in your source .mxd to see if you get the right result and then publish it on your server.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 20:41:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/extract-data-task-clip-and-ship-not-exporting/m-p/466483#M43216</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T20:41:56Z</dc:date>
    </item>
  </channel>
</rss>

