<?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 Enterprise Python Toolbox memory error in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/enterprise-python-toolbox-memory-error/m-p/1544420#M7315</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created a python toolbox for geoprocessing. The code is working great when I run it in arcgis pro but when I publish it to my enterprise portal I am getting the error:&amp;nbsp;&lt;SPAN&gt;Invalid return value: memory\output_layer&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;env.&lt;/SPAN&gt;&lt;SPAN&gt;overwriteOutput&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True which didn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this post online:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-delete-arcgis-enterprise-temporary-files-000028693" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/how-to-delete-arcgis-enterprise-temporary-files-000028693&lt;/A&gt;&amp;nbsp;on delete temporary files but it seems like a one off solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Has anyone else dealt with this error? How did you solve it and are there best practices for handling tempoary outputs from geoprocessing tools? Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geoprocessing toolbox error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116272iA78727C42CCA55B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="geoprocessing toolbox error.PNG" alt="geoprocessing toolbox error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 01 Oct 2024 17:49:14 GMT</pubDate>
    <dc:creator>solar_man</dc:creator>
    <dc:date>2024-10-01T17:49:14Z</dc:date>
    <item>
      <title>Enterprise Python Toolbox memory error</title>
      <link>https://community.esri.com/t5/developers-questions/enterprise-python-toolbox-memory-error/m-p/1544420#M7315</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I created a python toolbox for geoprocessing. The code is working great when I run it in arcgis pro but when I publish it to my enterprise portal I am getting the error:&amp;nbsp;&lt;SPAN&gt;Invalid return value: memory\output_layer&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I tried using:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;env.&lt;/SPAN&gt;&lt;SPAN&gt;overwriteOutput&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;True which didn't work. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I found this post online:&amp;nbsp;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-delete-arcgis-enterprise-temporary-files-000028693" target="_blank" rel="noopener"&gt;https://support.esri.com/en-us/knowledge-base/how-to-delete-arcgis-enterprise-temporary-files-000028693&lt;/A&gt;&amp;nbsp;on delete temporary files but it seems like a one off solution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Has anyone else dealt with this error? How did you solve it and are there best practices for handling tempoary outputs from geoprocessing tools? Any help would be great!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="geoprocessing toolbox error.PNG" style="width: 999px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/116272iA78727C42CCA55B3/image-size/large?v=v2&amp;amp;px=999" role="button" title="geoprocessing toolbox error.PNG" alt="geoprocessing toolbox error.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Oct 2024 17:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/enterprise-python-toolbox-memory-error/m-p/1544420#M7315</guid>
      <dc:creator>solar_man</dc:creator>
      <dc:date>2024-10-01T17:49:14Z</dc:date>
    </item>
  </channel>
</rss>

