<?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: Publishing Geoprocessing Service with In Memory workspace in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71075#M2764</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone for your help.&amp;nbsp; I'm able to publish the service w/o issues now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Jun 2015 13:34:55 GMT</pubDate>
    <dc:creator>BrendanDwyer</dc:creator>
    <dc:date>2015-06-24T13:34:55Z</dc:date>
    <item>
      <title>Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71065#M2754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using ArcMap and ArcServer 10.2.1&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I'm trying to publish a tool to ArcGIS server (federated to a Portal).&amp;nbsp; The script uses the in_memory workspace to store temporary data, and when you Analyze the service when publishing, it returns a warning that it has to upload the in_memory workspace to the server because it's not registered with the server (we have a couple of geodatabases and folders registered with the server already).&amp;nbsp; I ignore the warning and publish the service and get an error when it tried to stage the service.&amp;nbsp; The error is "ERROR 001270: Consolidating the data failed." &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the documentation, the error normally has something to do with the paths to the data.&amp;nbsp; I think this error is bubbling up because the data doesn't exist anymore.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shouldn't Arc "know" not to upload the in_memory workspace?&amp;nbsp; At the end of the script I clean them up and delete all the datasets in the in_memory workspace.&amp;nbsp; I'd appreciate any advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Brendan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 17:58:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71065#M2754</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2015-06-05T17:58:02Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71066#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure everything is running from a registered location?&amp;nbsp; Are you getting a clean result from the results window in ArcMap from which to publish the tool?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 19:10:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71066#M2755</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-06-05T19:10:31Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71067#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When I run the tool on desktop, there's no issues or warnings.&amp;nbsp; What do you mean by running it from a registered location?&amp;nbsp; I'm not uploading anything to a registered file or geodatabase (or at least I shouldn't be).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 19:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71067#M2756</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2015-06-08T19:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71068#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brendan,&lt;/P&gt;&lt;P&gt;Unfortunately I don't have a solution, I just remember I had the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I remember correctly I eventually used something like arcpy.env.scratchWorkspace instead of "in_memory" workspace. Or was it arcpy.env.scratchGDB? Or was it %scratchworkspace% ? Sorry I can't remember. Luckily in my case the performance of the service was still pretty good.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll need to publish some services soon so I'm eager to know how you get on.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Filip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 20:56:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71068#M2757</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2015-06-08T20:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71069#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What I mean is that when I publish a gp tool, I make sure the mxd itself and the data connections (or database in the case of a fgdb) contained in the mxd reside in the registered data store location...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 18:55:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71069#M2758</guid>
      <dc:creator>DavidColey</dc:creator>
      <dc:date>2015-06-09T18:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71070#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the tool built using model-builder or a python script?&amp;nbsp; Sounds like you're using a script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have published python toolboxes with in_memory intermediates to a 10.1 server without a problem.&amp;nbsp; If you're using a python script and still having problems, you may want to try building the "in_memory" path using os.path.join (i.e. "os.path.join('in_memory','tempFC')").&amp;nbsp; I had a similar issue with data getting inadvertently getting copied and that seemed to fix it. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2015 22:28:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71070#M2759</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-06-09T22:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71071#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it's a script.&amp;nbsp; I'm pretty solid with python but I'm new to geoprocessing services.&amp;nbsp; What are the advantages of publishing from an mxd?&amp;nbsp; How would the code be interpreted differently?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 20:43:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71071#M2760</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2015-06-10T20:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71072#M2761</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think the reason ESRI recommends publishing from an MXD is that they want you to run the tool before publishing.&amp;nbsp; You need a valid results object before you can publish to server. It is possible to do all of this through a script, but it's not easy.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As part of the publishing process, your script will get modified.&amp;nbsp; The publishing tools will crawl the script, replace any hard-coded paths with a variables and reset the paths so they reference locations that will get created on the server -- assuming the hard-coded path is not a registered data store.&amp;nbsp; Any data that gets copied with the tool is included in the '.sd' file (i.e. service definition file) that gets copied to the server.&amp;nbsp; The updated script also get included in the '.sd' file.&amp;nbsp; Depending on where this fail in the publishing process, you may be able to view the sd file and figure out what is going wrong.&amp;nbsp; If you can find the sd file on your machine, you can view it by changing the extension to '.zip'. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2015 21:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71072#M2761</guid>
      <dc:creator>BillDaigle</dc:creator>
      <dc:date>2015-06-10T21:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71073#M2762</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps this solution will work for you:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/110450"&gt;publishing a geoprocessing service that references in_memory data to AGS 10.1&amp;amp;amp;nbsp; fails&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although the thread implies that the issue should be fixed in 10.2.1 or was fixed in 10.1 SP1 so one would assume it would carry forward.&lt;/P&gt;&lt;P&gt;It looks to me like the work around is about fooling the publishing tool to not see in_memory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 20:53:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71073#M2762</guid>
      <dc:creator>PaulDavidson1</dc:creator>
      <dc:date>2015-06-11T20:53:28Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71074#M2763</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As &lt;A href="https://community.esri.com/migrated-users/10519"&gt;Bill Daigle&lt;/A&gt; suggests, this is the sure workaround to the problem, its quick and easy and should move you forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14341160232369896 jive_macro_code jive_text_macro" data-renderedposition="50_8_912_16" jivemacro_uid="_14341160232369896" modifiedtitle="true"&gt;&lt;P&gt;os.path.join("in_memory", "myInMemFeatures") # == "in_memory/myInMemFeatures"&lt;/P&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 13:36:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71074#M2763</guid>
      <dc:creator>KevinHibma</dc:creator>
      <dc:date>2015-06-12T13:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71075#M2764</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to everyone for your help.&amp;nbsp; I'm able to publish the service w/o issues now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Jun 2015 13:34:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71075#M2764</guid>
      <dc:creator>BrendanDwyer</dc:creator>
      <dc:date>2015-06-24T13:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: Publishing Geoprocessing Service with In Memory workspace</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71076#M2765</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm running into this issue myself, and I suspect that many others will as well. It still seems to be a problem even in 10.7 - shouldn't this have been fixed? It really shouldn't be needed to add extra lines just to fool ArcMap into accepting the in_memory workspace. This is a bug and should have been treated as such.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jan 2020 10:18:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/publishing-geoprocessing-service-with-in-memory/m-p/71076#M2765</guid>
      <dc:creator>NiekGoorman1</dc:creator>
      <dc:date>2020-01-08T10:18:14Z</dc:date>
    </item>
  </channel>
</rss>

