<?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: Where are the geoprocessing results? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22287#M1722</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seeing the Results in real time is how I can tell if it is hanging or not. If it is "Writing Feature xxxxxx" and #xxxxxx keeps changing, I know it is working. If it gets stuck and the feature # does not change, and the Messages don't change either (it does not proceed to a further stage) I know it is hanging. Thus the need to see the Results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;F.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Oct 2012 14:45:43 GMT</pubDate>
    <dc:creator>FionaGregory</dc:creator>
    <dc:date>2012-10-22T14:45:43Z</dc:date>
    <item>
      <title>Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22283#M1718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When I run a geoprocessing tool from ArcCatalog or ArcMap, the messages regarding the progress/success/warnings related to the running of the tool can be found in the Results window.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run arcpy geoprocessing tools from a Python script from the Python Shell, where does this report on the results go? Can I get it to print to the screen, or direct it to a file?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fiona&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22283#M1718</guid>
      <dc:creator>FionaGregory</dc:creator>
      <dc:date>2012-10-19T15:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22284#M1719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I use&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.GetMessages() #returns all messages (messages, errors, warnings, etc)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the documentation: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000p000000.htm" rel="nofollow" target="_blank"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00150000000p000000.htm&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 15:24:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22284#M1719</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-10-19T15:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22285#M1720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This was a good answer. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I put&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;print arcpy.GetMessages()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in my script, it will print the messages from the latest tool that was run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;However, of course it will not print these messages until after the tool has run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In my case, I prefer to see it while because I am having a problem with something hanging.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To see the results WHILE the tool is being run I think I have to convert the script into a script tool so I can run it from ArcCatalog.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Oct 2012 19:05:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22285#M1720</guid>
      <dc:creator>FionaGregory</dc:creator>
      <dc:date>2012-10-19T19:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22286#M1721</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think there is a way to return the messages in "real time"... but you could do something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;print "Attempting to Clip..."
arcpy.Clip_analysis(...)
print "Clip completed..."&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;or&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;try:
&amp;nbsp;&amp;nbsp; arcpy.Clip_analysis(...)
except:
&amp;nbsp;&amp;nbsp; print "Clip failed!"&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What leads you to believe the tool is hanging vs. just taking a long time?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:54:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22286#M1721</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2021-12-10T20:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22287#M1722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Chris&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Seeing the Results in real time is how I can tell if it is hanging or not. If it is "Writing Feature xxxxxx" and #xxxxxx keeps changing, I know it is working. If it gets stuck and the feature # does not change, and the Messages don't change either (it does not proceed to a further stage) I know it is hanging. Thus the need to see the Results.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;F.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 14:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22287#M1722</guid>
      <dc:creator>FionaGregory</dc:creator>
      <dc:date>2012-10-22T14:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Where are the geoprocessing results?</title>
      <link>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22288#M1723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I don't think you can get a hook into the realtime tool messages. However...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Maybe the feature it appears to be hanging on is just a large feature that requires extra time to process? If you look at this feature (probably has the same OBJECTID field value as the message indicates), is there something unusual about it? How many verticies does it have?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The TaskManger can be a useful tool in diagnosing things like this. While the tool appears to hang, what is going in parent process (ArcMap.exe if you are calling the tool from that application). Is the processor or RAM usage fluctuating? Do you see the read and/or write bytes increasing? How long will the tool run if you don't cancel it?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if the tool is indeed hanging, would your script do something else (like try an alternate tool, or use a modified tool parameter)?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;While it may be more complex than you are wanting to do, you could accomlish a sort of "time out" process by using the "subprocess" module.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Oct 2012 15:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/where-are-the-geoprocessing-results/m-p/22288#M1723</guid>
      <dc:creator>ChrisSnyder</dc:creator>
      <dc:date>2012-10-22T15:21:15Z</dc:date>
    </item>
  </channel>
</rss>

