<?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: Published Service can't find workspace in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686349#M22789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it will publish sucessfully, but once on the server the path between the script and the scratch gdb will not exist.&lt;/P&gt;&lt;P&gt;Rather use env.scratchGDB as the home for the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Mar 2017 07:37:48 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2017-03-14T07:37:48Z</dc:date>
    <item>
      <title>Published Service can't find workspace</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686348#M22788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a published service that was able to publish successfully, however when I try to run it locally it says that the&amp;nbsp;output workspace does not exist. &amp;nbsp;In my Python script, I establish my parameters and define my workspace as follows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
scriptPath = sys.path[&lt;SPAN style="color: #6897bb;"&gt;0&lt;/SPAN&gt;]
toolDataPath = os.path.join(scriptPath&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;'ToolData'&lt;/SPAN&gt;)
arcpy.env.snapRaster = os.path.join(toolDataPath&lt;SPAN style="color: #cc7832;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;'demfill'&lt;/SPAN&gt;)
arcpy.env.outputCoordinateSystem = arcpy.SpatialReference(&lt;SPAN style="color: #a5c261;"&gt;'NAD 1983 UTM ZONE 19N'&lt;/SPAN&gt;)
arcpy.env.scratchWorkspace=os.path.join(toolDataPath&lt;SPAN style="color: #cc7832;"&gt;,&lt;/SPAN&gt;&lt;SPAN style="color: #a5c261;"&gt;'Scratch\Scratch.gdb'&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;However when I try to run my service I get the following errors:&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/339936_error2.PNG" style="width: 620px; height: 249px;" /&gt;&lt;/P&gt;&lt;P&gt;Any idea on how to fix this? &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:47:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686348#M22788</guid>
      <dc:creator>EliseJackson</dc:creator>
      <dc:date>2021-12-12T16:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Published Service can't find workspace</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686349#M22789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, it will publish sucessfully, but once on the server the path between the script and the scratch gdb will not exist.&lt;/P&gt;&lt;P&gt;Rather use env.scratchGDB as the home for the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 07:37:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686349#M22789</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2017-03-14T07:37:48Z</dc:date>
    </item>
    <item>
      <title>Re: Published Service can't find workspace</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686350#M22790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That fixed it. &amp;nbsp;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Mar 2017 23:09:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/published-service-can-t-find-workspace/m-p/686350#M22790</guid>
      <dc:creator>EliseJackson</dc:creator>
      <dc:date>2017-03-14T23:09:41Z</dc:date>
    </item>
  </channel>
</rss>

