<?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: Erase GP  in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657640#M51186</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually the tool works fine locally, when i create the GP service it shows and try to use submit job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows job is successfully executed, but not data is created in my gdb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jan 2016 17:30:04 GMT</pubDate>
    <dc:creator>Srinivasa_MurthyNemani</dc:creator>
    <dc:date>2016-01-13T17:30:04Z</dc:date>
    <item>
      <title>Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657637#M51183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a simple GP and published as GP service, i executed the service using submit job, but nothing happen's&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;try:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.env.workspace = "C:\\geometry\\test.gdb"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; polygonFC = "drawPoly" &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; eraseFC = "testFC"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; outFC = "outFC"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; singlePart ="outputSP"&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.Erase_analysis(polygonFC,eraseFC,outFC)&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.MultipartToSinglepart_management(outFC,singlePart) &lt;/P&gt;&lt;P&gt;except:&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; error = arcpy.GetMessages()&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where am i'm i going wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 15:50:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657637#M51183</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-13T15:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657638#M51184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My first check would be to see if the "C:\\geometry\\test.gdb" workspace exist on the ArcGIS Server machine.&amp;nbsp; You may want to consider using a scratch or in_memory workspace instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:07:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657638#M51184</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-01-13T16:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657639#M51185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it might be useful to add a statement to print something.. as it stands right now any errors will be collected in your except block but not reported (ie add print(error) or arcpy.AddMessage(error) which ever is appropriate)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 16:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657639#M51185</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-01-13T16:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657640#M51186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;actually the tool works fine locally, when i create the GP service it shows and try to use submit job.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it shows job is successfully executed, but not data is created in my gdb.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:30:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657640#M51186</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-13T17:30:04Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657641#M51187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Actually registered the folder while publishing the GP service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 17:36:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657641#M51187</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-13T17:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657642#M51188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://server.arcgis.com/en/server/latest/publish-services/linux/overview-register-data-with-arcgis-server.htm" title="http://server.arcgis.com/en/server/latest/publish-services/linux/overview-register-data-with-arcgis-server.htm"&gt;About registering your data with ArcGIS Server—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Registering your data does not grant the ArcGIS Server account permissions to access your data. Before registering your data, you'll need to ensure that the ArcGIS Server account has at least read permissions to the data stored in folders, in databases, or in enterprise or workgroup geodatabases that are accessed using operating system authentication. To learn more about this process, see &lt;A class="xref" href="http://server.arcgis.com/en/server/latest/publish-services/linux/making-your-data-accessible-to-arcgis-server.htm"&gt;Make your data accessible to ArcGIS Server&lt;/A&gt;."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jan 2016 20:57:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657642#M51188</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-01-13T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657643#M51189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've all the persmssions required. works fine when i run the same script locally.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When publiched, i can see the status as succeeded, but no changes happen in the output feature when run through GP Service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 07:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657643#M51189</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-18T07:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657644#M51190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are there any messages in the logs of ArcGIS for Server?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:24:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657644#M51190</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-18T13:24:07Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657645#M51191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;no. no logs. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here is my code, do i have to import other modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Local variables:&lt;/P&gt;&lt;P&gt;MinesIP_shp = "C:\\test\\IP.shp"&lt;/P&gt;&lt;P&gt;ExistingMines_shp = "C:\\test\\Existing.shp"&lt;/P&gt;&lt;P&gt;EraseFC_shp = "%scratchworkspace%/EraseFC.shp"&lt;/P&gt;&lt;P&gt;EraseSFC_shp = "C:\\test\\EraseSFC.shp"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Erase&lt;/P&gt;&lt;P&gt;arcpy.Erase_analysis(MinesIP_shp, ExistingMines_shp, EraseFC_shp, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Process: Multipart To Singlepart&lt;/P&gt;&lt;P&gt;arcpy.MultipartToSinglepart_management(EraseFC_shp, EraseSFC_shp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i run the tool from catalog runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the same is published, no error no info. nothing &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tried with both submitJob, Execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 13:54:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657645#M51191</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-18T13:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657646#M51192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;no. no logs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;here is my code, do i have to import other modules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;import arcpy&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;# Local variables:&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;MinesIP_shp = "C:\\test\\IP.shp"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;ExistingMines_shp = "C:\\test\\Existing.shp"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;EraseFC_shp = "%scratchworkspace%/EraseFC.shp"&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;EraseSFC_shp = "C:\\test\\EraseSFC.shp"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;# Process: Erase&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.Erase_analysis(MinesIP_shp, ExistingMines_shp, EraseFC_shp, "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;# Process: Multipart To Singlepart&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;arcpy.MultipartToSinglepart_management(EraseFC_shp, EraseSFC_shp)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;when i run the tool from catalog runs fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;the same is published, no error no info. nothing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;tried with both submitJob, Execute.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jan 2016 14:06:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657646#M51192</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-18T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657647#M51193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to import another module. There is no need in your script. However, the &lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;%scratchworkspace% will probably not work. This looks like how you would use it in ModelBuilder. See &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/executing-tools/using-the-current-and-scratch-workspace-environments.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/executing-tools/using-the-current-and-scratch-workspace-environments.htm"&gt;Using the current and scratch workspace environments—Help | ArcGIS for Desktop&lt;/A&gt; .&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Your script is probably the script before publishing. I would be more interested in the content of the script after publishing it to ArcGIS for Server. There is a big difference between running scripts locally and publishing them as geoprocessing services. And during the publishing process the chances are high that the content of the script is changed by ArcGIS. You may be interested in this topic: &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/authoring-geoprocessing-tasks-with-python-scripts.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/authoring-geoprocessing-tasks-with-python-scripts.htm"&gt;Authoring geoprocessing tasks with Python scripts—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The other part is the data and access to it. Do you have a folder C:\test with the data on you server? Did you choose to copy data to the server during the publishing process. You may want to read up with this topic: &lt;A href="http://server.arcgis.com/en/server/latest/publish-services/windows/making-your-data-accessible-to-arcgis-server.htm" title="http://server.arcgis.com/en/server/latest/publish-services/windows/making-your-data-accessible-to-arcgis-server.htm"&gt;Make your data accessible to ArcGIS Server—Documentation (10.3 and 10.3.1) | ArcGIS for Server&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The script is currently using the same data for its process. Do you want to make it variable? Please read: &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/accessing-parameters-in-a-script-tool.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/creating-tools/accessing-parameters-in-a-script-tool.htm"&gt;Accessing parameters in a script tool—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;If not you may want to consider construct a simple Model in ModelBuilder, run it and after a succesful run, share it as a geoprocessing service. &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/sharing-workflows/a-quick-tour-of-authoring-geoprocessing-services.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/sharing-workflows/a-quick-tour-of-authoring-geoprocessing-services.htm"&gt;A quick tour of authoring and sharing geoprocessing services—Sharing geoprocessing workflows | ArcGIS for Desktop&lt;/A&gt; . Although having a geoprocessing service that will create the same output every time it runs, does not sound very useful to me.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 01:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657647#M51193</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-19T01:15:05Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657648#M51194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for the detailed info, its really useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My basic requirement is i want to implement overlay analysis using Javascript API, i found out that there is a dependency of Portal for arcgis for implementing the same.&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jsapi/overlaylayers-amd.html" title="https://developers.arcgis.com/javascript/jsapi/overlaylayers-amd.html"&gt;OverlayLayers | API Reference | ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I've decided to write a python script for this purpose, and all my process has to happen backend, so there are no parameters declared, data is directly read from SDE/GDB/.SHP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now once my GP service is ready, i want to implement this using a Geoporcessor object in Arcgis Javascript Api.&lt;/P&gt;&lt;P&gt;And all this process should take place on a button click for a web application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm stuck with the GP service.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 05:19:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657648#M51194</guid>
      <dc:creator>Srinivasa_MurthyNemani</dc:creator>
      <dc:date>2016-01-19T05:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657649#M51195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Question (although I'm slowly exiting my comfort zone)... Would it be possible to implement the Geometry Service? Although I didn't see the option to apply an Erase, the same effect can be obtained by doing a Union and selecting the features you need. &lt;A href="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html#union" title="https://developers.arcgis.com/javascript/jsapi/geometryservice-amd.html#union"&gt;GeometryService | API Reference | ArcGIS API for JavaScript&lt;/A&gt; . Maybe that could be another question to put in &lt;A href="https://community.esri.com/space/2128"&gt;ArcGIS API for JavaScript&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I would like to know, are the data you are referring to in your script static? If so then I don't really understand why you would want a GP service to create the same output every time it runs. If not you should work with parameters to specify the data to use in the process. The other point is that you will probably have to use the arcpy.SetParameter (&lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/setparameter.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-functions/setparameter.htm"&gt;SetParameter—Help | ArcGIS for Desktop&lt;/A&gt; ) so that your application will be able to get the result from the operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I´m still interesting to see what ArcGIS for Server did to your script while publishing. You should be able to find the script in a folder like:&lt;/P&gt;&lt;P&gt;\\&lt;EM&gt;ServerName&lt;/EM&gt;\arcgisserver\directories\arcgissystem\arcgisinput\&lt;EM&gt;FolderName&lt;/EM&gt;\&lt;EM&gt;ServiceName&lt;/EM&gt;.GPServer\extracted\v101&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 11:37:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657649#M51195</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2016-01-19T11:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Erase GP</title>
      <link>https://community.esri.com/t5/python-questions/erase-gp/m-p/657650#M51196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;So I've decided to write a python script for this purpose, and all my process has to happen backend, so there are no parameters declared, data is directly read from SDE/GDB/.SHP.&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is going to happen when there are many concurrent users?&amp;nbsp; Each successive one will be overwriting what the last execution created?&amp;nbsp; I'd think each should get their own result (output parameter).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 13:46:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/erase-gp/m-p/657650#M51196</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2016-01-19T13:46:13Z</dc:date>
    </item>
  </channel>
</rss>

