<?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: 10.1 ExtractData.py script not the same as embedded Extract Data tool script in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299134#M10342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;you mean the Value List in the Feature Format parameter causes the problem? Because it uses the string ".gdb"? That's why it's looking for a data source named "gdb"? Well, thanks for the hint! I can hardcode-limit this to .shp only until SP1 is available. I'll give it a try and post my results.&lt;BR /&gt;&lt;BR /&gt;Steffen.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;exactyl! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Sep 2012 18:46:02 GMT</pubDate>
    <dc:creator>KevinHibma</dc:creator>
    <dc:date>2012-09-10T18:46:02Z</dc:date>
    <item>
      <title>10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299126#M10334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have been creating services in 10.1 using geoprocessing tools created in 10.0.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;One tool was based on the Extract Data Task in the Server Tools toolbox.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran the tool which completed successfully, but when I tried to publish results as geoprocessing service, I received the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Error - Code 68 - Script Extract Data contains broken project data source: gdb&lt;BR /&gt;Warning - Code 24032 - Data source used by Script Extract Data is not registered with the server and will be copied to the server: gdb&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;I then used the 10.1 ExtractData.py script to refactor the 10.0 script and received the same error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I ran the Extract Data Task directly from the Server Tools toolbox, it published successfully.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I copied the Extract Data Task and script to a new toolbox, publishing failed again with the above error.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;After some more research and testing, I realized that the Server Tools Extract Data was using an embedded script which was different from the Extract Data.py script in the ArcGIS\Desktop10.1\ArcToolbox\Scripts folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Question:&amp;nbsp; Is it possible to get copy of the &lt;/SPAN&gt;&lt;SPAN style="text-decoration:underline;"&gt;functional&lt;/SPAN&gt;&lt;SPAN&gt; embedded ExtractData.py script?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Aug 2012 15:45:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299126#M10334</guid>
      <dc:creator>GerardoGarza</dc:creator>
      <dc:date>2012-08-07T15:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299127#M10335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, I'm having the same problem and contacted ESRI support about it because I think it's a bug. Could you solve it or has anyone sent you some hints? Why do you think the tools run embedded scripts that are different from those in ArcGIS\Desktop10.1\ArcToolbox\Scripts folder? I tested this with the ExtractData.py script and added a message command to the original code and it shows up when I execute the original Server Toolbox model.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steffen&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:steffen.schillinger@gmx.net"&gt;steffen.schillinger@gmx.net&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Sep 2012 18:48:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299127#M10335</guid>
      <dc:creator>SteffenSchillinger</dc:creator>
      <dc:date>2012-09-09T18:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299128#M10336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This shouldn't have anything to do with the ExtractData script, nor matter if its embedded or not.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The analyzer error 00068 says that the packaging/publishing process cannot find required data to complete publishing. (broken project data required for the service)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've never seen that error pop up in regards to the Extract Data task.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;We'll bang on it here to see if we can reproduce it, but I'm sort of at a loss as why thats happening for you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of publishing as a service, can you save it as a geoprocessing package - same error, or no?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Can you very clearly spell out your workflow? (maybe you're doing something I'm not...?)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 14:26:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299128#M10336</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-09-10T14:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299129#M10337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Kevin, thanks for answering. The error also pops up when trying to publish a package. The workflow follows the example at &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/index.html#/Clip_and_ship/005700000073000000:"&gt;http://resources.arcgis.com/en/help/main/10.1/index.html#/Clip_and_ship/005700000073000000:&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Copy Extract Data Task from System Toolboxes\Server Tools\Data Extraction to MyToolboxes\New Toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Edit model and set layers to clip and other parameters as in example&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Execute Model -&amp;gt; works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Publish Model as Geoprocessing service -&amp;gt; works, no errors when analyzing (underlying data of MXD have already been registered with the server and been published as map service)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Copy Extract Data Script tool from Server Tools\Data Extraction to MyToolboxes\New Toolbox&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;6. Copy ExtractData.py from ArcGIS\Desktop10.1\ArcToolbox\Scripts to different folder on local drive (i.e. c:\work)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;7. Set source property of MyToolboxes\New Toolbox\Extract Data model script to c:\work\ExtractData.py&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;8. Delete Extract Data model tool from MyToolboxes\New Toolbox\Extract Data Task model&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;9. Drag and drop MyToolboxes\New Toolbox\Extract Data to model and reassign/define parameters and links&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;10. Execute model -&amp;gt; works&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;11 Publish model as geoproc service -&amp;gt; error pops up when analyzing&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Resume: same model script without any modifications causes this error when replacing original script tool with it in Extract Data Task model&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;regards and thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steffen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 15:24:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299129#M10337</guid>
      <dc:creator>SteffenSchillinger</dc:creator>
      <dc:date>2012-09-10T15:24:14Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299130#M10338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Steffen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the detailed steps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using steps 6-11, on a ArcGIS 10.1 final machine I &lt;/SPAN&gt;&lt;STRONG&gt;can reproduce&lt;/STRONG&gt;&lt;SPAN&gt; the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Using a 10.1 SP1 machine (we havent released SP1, we're finalizing it right now), I &lt;/SPAN&gt;&lt;STRONG&gt;cannot&lt;/STRONG&gt;&lt;SPAN&gt; reproduce the issue - so we've fixed it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;My apologies for the inconvenience.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A question though - why do you need to copy the script and model tool to a custom toolbox?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want to control parameters (for example, you want to remove options from the feature choice list, or you dont want to expose the raster format parameter) you can run the tool from the system toolbox, and then during publishing modify those parameters inside the service editor. Just click the parameter name on the left hand side and change the Input Mode, or configure the Choice List options. Unless you're adding new values to the data extract format task, everything else you want to do should be configurable through the service editor.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this will provide a suitable workaround till SP1.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 16:05:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299130#M10338</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-09-10T16:05:46Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299131#M10339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear Kevin, thanks a lot for checking this so quickly. I was afraid I had to wait for SP1 - unfortunately, I have another incident pending (Silverlight Viewer can't display image service as basemap) and support told me that SP1, which would be released later this month, will fix this, too. Isn't there a way through EDN or so to get a beta version of SP1? My task requires to customize the Python source code of ExtractData.py and I thought best way to start is using a copy of the original file. Do you think I could publish a geoproc service building the model and model script from scratch?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In any case, many thanks for clarifying this. You were faster than ESRI support &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steffen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299131#M10339</guid>
      <dc:creator>SteffenSchillinger</dc:creator>
      <dc:date>2012-09-10T17:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299132#M10340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No, we dont do "beta" service packs, only the final release of them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you absolutely require a custom version of the extract data task, do you still need feature parameter input? This is the problem, if you can either hardcode or change that parameter, you can probably get around the analyzer problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The tool does a name match, so its possible (i havent tried this though) to play with the name inside the parameter and then change the code in the tool. Of course if you dont need the feature type parameter, the best solution would be to hardcode it in the script and not expose that parameter. Again, I think this will work, but no guarantees.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 17:58:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299132#M10340</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-09-10T17:58:07Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299133#M10341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;you mean the Value List in the Feature Format parameter causes the problem? Because it uses the string ".gdb"? That's why it's looking for a data source named "gdb"? Well, thanks for the hint! I can hardcode-limit this to .shp only until SP1 is available. I'll give it a try and post my results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steffen.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:23:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299133#M10341</guid>
      <dc:creator>SteffenSchillinger</dc:creator>
      <dc:date>2012-09-10T18:23:08Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299134#M10342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi again,&lt;BR /&gt;&lt;BR /&gt;you mean the Value List in the Feature Format parameter causes the problem? Because it uses the string ".gdb"? That's why it's looking for a data source named "gdb"? Well, thanks for the hint! I can hardcode-limit this to .shp only until SP1 is available. I'll give it a try and post my results.&lt;BR /&gt;&lt;BR /&gt;Steffen.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;exactyl! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 18:46:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299134#M10342</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2012-09-10T18:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299135#M10343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;No, we dont do "beta" service packs, only the final release of them.&lt;BR /&gt;&lt;BR /&gt;If you absolutely require a custom version of the extract data task, do you still need feature parameter input? This is the problem, if you can either hardcode or change that parameter, you can probably get around the analyzer problem.&lt;BR /&gt;&lt;BR /&gt;The tool does a name match, so its possible (i havent tried this though) to play with the name inside the parameter and then change the code in the tool. Of course if you dont need the feature type parameter, the best solution would be to hardcode it in the script and not expose that parameter. Again, I think this will work, but no guarantees.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Kevin, I tried this but without success. I even completely deleted the two format type variables from the model and hard-coded the getparameter string to shapefile. The model runs and does its job but the analyzer error remains. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Besides, why would this error occur only when the script is not in it's original location? Seems a bit odd to me. SP1 addresses this error for example &lt;/SPAN&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;NIM081276 - Sharing some script tools that use Network Analyst tools as a geoprocessing service incorrectly raises analyzer error "Results contains &lt;BR /&gt;broken project data source".&lt;/BLOCKQUOTE&gt;&lt;SPAN&gt;, and since this seems to fix the before mentioned error, too, I guess there are things wrong in the model builder itself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steffen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 19:24:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299135#M10343</guid>
      <dc:creator>SteffenSchillinger</dc:creator>
      <dc:date>2012-09-10T19:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299136#M10344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Steffen,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry for the delay in returning to this thread.&amp;nbsp; I was pulled to another project that took my attention away.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The issue lies in the strict scanning of python scripts when publishing as a geoprocessing service.&amp;nbsp; According to &lt;/SPAN&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Authoring_geoprocessing_tasks_with_Python_scripts/01540000054p000000/"&gt;Authoring Geoprocessing Tasks with Python Scripts&lt;/A&gt;&lt;SPAN&gt;, "when your script is scanned, every quoted string (either single- or double-quotes) used in a Python variable or as an argument to a function is tested to see if it is a path to data that exists."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Line 135 in ExtractData.py is the culprit.&amp;nbsp; I changed "gdb" to "file geodatabase" so it wouldn't look like part of a path when passed to getTempLocationPath, and it published.&amp;nbsp; I'll be curious to see how the script has changed in SP1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;GG&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2012 21:56:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299136#M10344</guid>
      <dc:creator>GerardoGarza</dc:creator>
      <dc:date>2012-09-19T21:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: 10.1 ExtractData.py script not the same as embedded Extract Data tool script</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299137#M10345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Steffen,&lt;BR /&gt;Sorry for the delay in returning to this thread.&amp;nbsp; I was pulled to another project that took my attention away.&lt;BR /&gt;&lt;BR /&gt;The issue lies in the strict scanning of python scripts when publishing as a geoprocessing service.&amp;nbsp; According to &lt;A href="http://resources.arcgis.com/en/help/main/10.1/#/Authoring_geoprocessing_tasks_with_Python_scripts/01540000054p000000/"&gt;Authoring Geoprocessing Tasks with Python Scripts&lt;/A&gt;, "when your script is scanned, every quoted string (either single- or double-quotes) used in a Python variable or as an argument to a function is tested to see if it is a path to data that exists."&lt;BR /&gt;&lt;BR /&gt;Line 135 in ExtractData.py is the culprit.&amp;nbsp; I changed "gdb" to "file geodatabase" so it wouldn't look like part of a path when passed to getTempLocationPath, and it published.&amp;nbsp; I'll be curious to see how the script has changed in SP1.&lt;BR /&gt;Hope this helps,&lt;BR /&gt;GG&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ran into a similar issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;ArcGIS Server: 10.11&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Example source: Geoprocessing service example data provided with ArcGIS for Desktop version 10.1 and 10.2. &lt;A href="http://www.arcgis.com/home/item.html?id=6987d0a0daa14fe9861bae93e4808845"&gt;http://www.arcgis.com/home/item.html?id=6987d0a0daa14fe9861bae93e4808845&lt;/A&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;Example: ClipAndShip &amp;gt; ExtractZion &amp;gt; ExtractZionData&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Trying to share as a geoprocessing service throws the same error and warning.&amp;nbsp; Changing line 135 in the python script to "file geodatabase" does fix the error.&amp;nbsp; However, layer groups are still a problem.&amp;nbsp; Any layer group in the file is given a warning code 24032.&amp;nbsp; Along with the layer groups is another 24032 warning for "\" as shown here:&amp;nbsp; "Data source used by Script Extract Data is not registered with the server and will be copied to the server: \".&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A "flat" map file with no groups is a way to get around "copying" data to the server.&amp;nbsp; If you publish with the "\" warning, the selection box is empty and you can publish anyway.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is why are layer groups and "\" treated as data not on the server?&amp;nbsp; Is it required to use "flat" (no layer groups) map files to publish geoprocessing services?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Feb 2014 16:20:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/10-1-extractdata-py-script-not-the-same-as/m-p/299137#M10345</guid>
      <dc:creator>TysonSchoepflin</dc:creator>
      <dc:date>2014-02-10T16:20:03Z</dc:date>
    </item>
  </channel>
</rss>

