<?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: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance() in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222289#M61131</link>
    <description>&lt;P&gt;The spatial analyst and image analyst are indeed scriptable.&amp;nbsp; Check out arcpy&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/main/arcgis-pro-arcpy-reference.htm" target="_blank"&gt;ArcGIS Pro Python reference—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 15 Oct 2022 17:15:06 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-10-15T17:15:06Z</dc:date>
    <item>
      <title>arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222258#M61120</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;BLUF: Does the script version of CalculateDistance() require an enterprise license/cloud resources?&lt;/STRONG&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;This is the latest ArcGIS Pro 3&lt;/LI&gt;&lt;LI&gt;I'm in an active copy of the base python environment&lt;/LI&gt;&lt;LI&gt;The project is signed in to the portal at &lt;A href="https://smitty-gmu.maps.arcgis.com/home/index.html" target="_blank"&gt;https://smitty-gmu.maps.arcgis.com/home/index.html&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I am able to use the Geoprocessing|Euclidian Distance tool effectively in the ArcGIS Pro desktop interface.&lt;/P&gt;&lt;P&gt;When I copy the arguments from the desktop interface and try to execute them via arcpy.ra.CalculateDistance(), however, I receive the following error:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Traceback (most recent call last):&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "C:\Users\csmith\Documents\ArcGIS\Projects\final_data_roundtrip\final_data\final_data.py", line 4, in &amp;lt;module&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;main()&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "C:\Users\csmith\Documents\ArcGIS\Projects\final_data_roundtrip\final_data\main.py", line 110, in main&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;arcpy.ra.CalculateDistance( inputSourceRasterOrFeatures = WORKSP + r'\scratch' + str(i) + r'\Band_1'&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ra.py", line 2156, in CalculateDistance&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;raise e&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\ra.py", line 2153, in CalculateDistance&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;retval = convertArcObjectToPythonObject(gp.CalculateDistance_ra(*gp_fixargs((inputSourceRasterOrFeatures, outputDistanceName, maximumDistance, outputCellSize, outputDirectionName, outputAllocationName, allocationField, distanceMethod, inputBarrierRasterOrFeatures, outputBackDirectionName), True)))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;File "C:\Program Files\ArcGIS\Pro\Resources\ArcPy\arcpy\geoprocessing\_base.py", line 512, in &amp;lt;lambda&amp;gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;return lambda *args: val(*gp_fixargs(args, True))&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL.&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;Failed to execute (CalculateDistance).&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Is there an environment setting that is needful to get around this? Or do I need to work my portal administrator to verify that required server components are installed and permissions granted to my account?&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chris Smith&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 02:32:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222258#M61120</guid>
      <dc:creator>smitty1e</dc:creator>
      <dc:date>2022-10-15T02:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222271#M61123</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/raster-analysis/raster-analysis-toolbox-license.htm" target="_blank"&gt;Raster Analysis toolbox licensing—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/raster-analysis/an-overview-of-the-legacy-use-proximity-toolset.htm" target="_blank"&gt;An overview of the Legacy Use Proximity toolset—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/raster-analysis/calculate-distance.htm" target="_blank"&gt;Calculate Distance (Raster Analysis)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can use the substitute locally installed version instead&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 08:51:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222271#M61123</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-10-15T08:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222282#M61128</link>
      <description>&lt;P&gt;Thanks for the feedback.&lt;/P&gt;&lt;P&gt;Is the substitute locally installed version scriptable?&lt;/P&gt;&lt;P&gt;I wanted to perform analysis on several hundred rasters; managing them by means of the UI would be a fallback position.&lt;/P&gt;&lt;P&gt;Very respectfully,&lt;/P&gt;&lt;P&gt;Chris Smith&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 14:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222282#M61128</guid>
      <dc:creator>smitty1e</dc:creator>
      <dc:date>2022-10-15T14:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222289#M61131</link>
      <description>&lt;P&gt;The spatial analyst and image analyst are indeed scriptable.&amp;nbsp; Check out arcpy&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/arcpy/main/arcgis-pro-arcpy-reference.htm" target="_blank"&gt;ArcGIS Pro Python reference—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 17:15:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222289#M61131</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-10-15T17:15:06Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222303#M61137</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/215600"&gt;@DanPatterson&lt;/a&gt;Yes, but transferring my Euclidian Distance arguments to arcpy triggered the Subject: error. Hence my question of whether AcrGIS Pro acrpy.ra.CalculateDistance() has to be run on a portal server, which seems to be hinted at by the error.&lt;/P&gt;</description>
      <pubDate>Sat, 15 Oct 2022 23:59:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222303#M61137</guid>
      <dc:creator>smitty1e</dc:creator>
      <dc:date>2022-10-15T23:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222556#M61174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/610342"&gt;@smitty1e&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The raster analysis tools, such as Calculate Distance,&amp;nbsp;are portal tool and are only available to you when you are signed into an&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/11.0/administer/windows/understanding-analysis-in-portal-for-arcgis.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;ArcGIS Enterprise&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;portal that has an&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/image/11.0/get-started/linux/what-is-arcgis-image-server-.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;ArcGIS Image Server&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;configured for&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/11.0/administer/windows/configure-and-deploy-arcgis-enterprise-for-raster-analytics.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Raster Analysis&lt;/SPAN&gt;&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;When the tool is invoked,&amp;nbsp;&lt;SPAN&gt;ArcGIS Pro&lt;/SPAN&gt;&amp;nbsp;serves as a client and the processing occurs in the servers federated with&amp;nbsp;&lt;SPAN&gt;ArcGIS Enterprise&lt;/SPAN&gt;. The portal tool accepts layers from your portal as input and creates output in your portal.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The input raster layer supports a layer from the portal, a URI or URL to an image service, or the output from the&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/3.0/tool-reference/data-management/make-image-server-layer.htm" target="_blank" rel="noopener"&gt;&lt;SPAN&gt;Make Image Server Layer&lt;/SPAN&gt;&lt;/A&gt;&amp;nbsp;tool. The input feature layer can be a layer from the portal or a URI or URL to a feature service. This tool does not support local raster data or layers. While you can use local feature data and layers as input to this portal tool, best practice is to use layers from your portal as input.&lt;/P&gt;&lt;P&gt;From your scripting error I think you may not be meeting one of the criteria I mention above.&lt;BR /&gt;&lt;BR /&gt;Also, I'm not sure why you are running Euclidean Distance in the Pro Application first?&lt;BR /&gt;&lt;BR /&gt;If you are trying to get a code snippit you can run Calculate Distance from inside the Pro Application. In Pro if you log into your Portal and have the correct setup and licenses to use Raster Analysis, you are able to access Calculate Distance from in the Pro Application. You can access this tool in 2 places:&lt;BR /&gt;&lt;BR /&gt;1) In the Geoprocessing pane, in the search bar type the name of the tool.&amp;nbsp; &amp;nbsp;(Or in the Geoprocessing pane next to Toolboxes, it says Portal.&amp;nbsp; Click Portal and you can see Raster Analysis Tools toolset, and in there is the Use Proximity (Legacy) toolset.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2) On the Analysis Ribbon --&amp;gt; Raster Analytics&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ElizabethGraham_1-1666026431223.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/53770i845FE277B7F03D8F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="ElizabethGraham_1-1666026431223.png" alt="ElizabethGraham_1-1666026431223.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After you run Calculate Distance in Pro you can go to the history, right click the successfully run tool and select Copy Python Command, then use this command in your script- if your script is setup to access Portal.&lt;BR /&gt;&lt;BR /&gt;Also, I suggest that you use &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/raster-analysis/distance-accumulation.htm" target="_self"&gt;Distance Accumulation&lt;/A&gt;, instead of Calculate Distance.&amp;nbsp; Calculate Distance is part of a Legacy toolset.&lt;BR /&gt;&lt;BR /&gt;I hope you find this information helpful,&lt;/P&gt;&lt;P&gt;Liz Graham&lt;BR /&gt;Spatial Analyst Product Engineer&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 17:33:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222556#M61174</guid>
      <dc:creator>ElizabethGraham</dc:creator>
      <dc:date>2022-10-17T17:33:55Z</dc:date>
    </item>
    <item>
      <title>Re: arcgisscripting.ExecuteError: Unable to get rasterAnalytics URL from CalculateDistance()</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222633#M61183</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.esri.com/t5/user/viewprofilepage/user-id/610342" target="_blank"&gt;@smitty1e&lt;/A&gt;, your connection,&amp;nbsp;&lt;A href="https://smitty-gmu.maps.arcgis.com/home/index.html" target="_blank" rel="nofollow noopener noreferrer"&gt;https://smitty-gmu.maps.arcgis.com/home/index.html&lt;/A&gt;, is not to a Portal Enterprise, it is to ArcGIS Online.&amp;nbsp; For your script to run you need to be connected to an&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/portal/11.0/administer/windows/understanding-analysis-in-portal-for-arcgis.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;ArcGIS Enterprise&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;portal that has an&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/image/11.0/get-started/linux/what-is-arcgis-image-server-.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;ArcGIS Image Server&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;configured for&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://enterprise.arcgis.com/en/portal/11.0/administer/windows/configure-and-deploy-arcgis-enterprise-for-raster-analytics.htm" target="_blank" rel="noopener nofollow noreferrer"&gt;&lt;SPAN&gt;Raster Analysis.&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Oct 2022 20:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/arcgisscripting-executeerror-unable-to-get/m-p/1222633#M61183</guid>
      <dc:creator>ElizabethGraham</dc:creator>
      <dc:date>2022-10-17T20:46:28Z</dc:date>
    </item>
  </channel>
</rss>

