<?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: Python scripts  do  not run complete on Sheduled task in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202235#M15565</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I am using Scheduled Task. Please see attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Jun 2013 14:35:26 GMT</pubDate>
    <dc:creator>TAMARADIEZ</dc:creator>
    <dc:date>2013-06-04T14:35:26Z</dc:date>
    <item>
      <title>Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202230#M15560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have various python scripts running through scheduled tasks. Each scheduled task is pointing to a python script. They run independently.They are scheduled to run daily and have been working fine for months. Last week,&amp;nbsp; I added a new task and pointed to a new python script. It seem to be since then,&amp;nbsp; the tasks do not complete even I ran them manually. If I run the python scripts using python they work fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The tasks ran okay until the 29th May.&amp;nbsp; I compared the history of the tasks before the 29th May and after. I noticed in the Task Category the following difference:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. When the task that ran properly (before 29th May), the instance is c:\python26\Arcgis10.0\python.exe &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. The same task&amp;nbsp; which does not complete after the 29th May. The instance is pointing to Notepad.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use a Service account and it has the permmisions. Connections to ArcCatalog are in place.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you able to provide some advice please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:09:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202230#M15560</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T11:09:16Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202231#M15561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you running these scheduled tasks in a Windows OS environment?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, are you running on a workstation with an OS such as XP, 7, or 8?&amp;nbsp; Or are you running on a server with as OS such as Windows Server 2003 or 2008?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 11:26:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202231#M15561</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T11:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202232#M15562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It is Windows Server 2008 (64-bit). ArcGIS Server 10 and ArcGIS Desktop 10 is installed here too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:35:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202232#M15562</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T13:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202233#M15563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Are you using Task Scheduler to set up these scheduled tasks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If so, under Action what do you have set for Program/script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under Action what do you have set for Add arguments?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Under Action what do you have set for Start in?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 13:50:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202233#M15563</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T13:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202234#M15564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;there's a great little piece of python code that'll let you call an ArcGIS Model without having to export it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy

arcpy.ImportToolbox(r"Path to toolbox connection", "TBX")

arcpy.NAME OF MODEL_TBX()
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;couple things to note...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the path to the connection should be similar to : &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;C:\Users\USERNAME\AppData\Roaming\ESRI\Desktop10.1\ArcCatalog\YOURDATABASE\YOURTOOLBOX&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;or wherever your .sde files are located.&amp;nbsp; you can setup a .sde connection as an Administrator or as the SDE user, whichever model you use for security purposes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Further...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The name of the model is not the name you give it in ArcCatalog, it's the internal name to the software.&amp;nbsp; This can be found in the Properties window for the model.&amp;nbsp; It'll be the in the first dialog box.&amp;nbsp; You can also change it to whatever you want.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.NAME OF MODEL_TBX()&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lastly, you save this as a .py file that you can then point to in Scheduled Tasks.&amp;nbsp; You'll need to run this script as an administrator on whatever machine you are running the file from.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Personally, I think it's easier to make changes to a model as opposed to exporting a model every time you want to change it.&amp;nbsp; In addition, you eliminate the need to cleanup the exported script, I have yet to have an exported python script from ModelBuilder work without some cleanup.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:02:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202234#M15564</guid>
      <dc:creator>JacobBoyle</dc:creator>
      <dc:date>2021-12-11T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202235#M15565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I am using Scheduled Task. Please see attached image.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 14:35:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202235#M15565</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T14:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202236#M15566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Under Start In add C:\Python26\python.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then try running your scheduled task again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 14:49:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202236#M15566</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T14:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202237#M15567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Do you happen to be using the buffer tool in your script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The reason I ask is that I have some python scripts that have been running just fine for a couple years now.&amp;nbsp; Starting 5/29, they all of a sudden started crashing on my buffer operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;No errror, even have a try:/except: and it doesn't catch it.&amp;nbsp; if in IDE, it just "resets" and sits there quitely.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Not sure if related to Microsoft updates or what.&amp;nbsp; Still working on this one, just thought I'd ask since the timing is so similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 14:53:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202237#M15567</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-06-04T14:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202238#M15568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Under Start In add C:\Python26\python.exe&lt;BR /&gt;&lt;BR /&gt;then try running your scheduled task again&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I entered "C:\Python26\ArcGIS10.0\python.exe" as Python that is location where python is. I've received the error below:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task Scheduler failed to start instance "{dc05bb58-3898-46a6-a58f-0f9c077ae699}" of "\THH_Decent_Homes_External_Update"&amp;nbsp; task for user "Domian\Account_GisAdmin" . Additional Data: Error Value: 2147942667.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:19:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202238#M15568</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T15:19:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202239#M15569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Do you happen to be using the buffer tool in your script?&lt;BR /&gt;&lt;BR /&gt;The reason I ask is that I have some python scripts that have been running just fine for a couple years now.&amp;nbsp; Starting 5/29, they all of a sudden started crashing on my buffer operation.&lt;BR /&gt;No errror, even have a try:/except: and it doesn't catch it.&amp;nbsp; if in IDE, it just "resets" and sits there quitely.&lt;BR /&gt;&lt;BR /&gt;Not sure if related to Microsoft updates or what.&amp;nbsp; Still working on this one, just thought I'd ask since the timing is so similar.&lt;BR /&gt;&lt;BR /&gt;R_&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not have any buffers set up. They are 7 scheduled tasks each one pointing to a different python script. So each script is different.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:21:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202239#M15569</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T15:21:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202240#M15570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have always had best luck with the scheduler if I set up a batch file that runs my script, then schedule the batch file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my batch files that work on version 10.0 machine is:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;C:

cd C:\Python26\ArcGIS10.0

Python D:\baks\dont_use\compact1.py



Exit&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then just navigate to this bat file in the task scheduler.&amp;nbsp; Will fill in the "Start in" box for you.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Just make sure the path is correct for your python, and script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_[ATTACH=CONFIG]24974[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:02:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202240#M15570</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T10:02:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202241#M15571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Sorry Tamadie as my last post gave you incorrect information&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cut the path from Start in and paste it into the Add arguments box&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;then try running your script&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I usually use bat files to call python scripts, but this should now work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 15:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202241#M15571</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202242#M15572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did it but the task did not complete. It is still calling notepad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 17:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202242#M15572</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T17:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202243#M15573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;I do not have any buffers set up. They are 7 scheduled tasks each one pointing to a different python script. So each script is different.&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;T&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, did you say your scripts stop working on the 29th May? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 17:11:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202243#M15573</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-04T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202244#M15574</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tamadie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You might want to check with IT people at your organization to see if this server gets automatic OS updates.&amp;nbsp; If so, you might want to see if there was an update on May 29.&amp;nbsp; If there was, you might want to see if they can revert back to the OS before this update and then see if your scheduled task runs.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You could also try running your scheduled task from a bat file that calls the python script.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Jun 2013 17:20:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202244#M15574</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-04T17:20:47Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202245#M15575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see you are on a newer OS than XP, so here is my scheduled task action that works in win7.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24984[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and this is the contents of the oracle.bat file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
cd C:\Python27\ArcGIS10.1

Python C:\arcgisserver\python\oracle.py


Exit
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is working for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Also, if you are opening Notepad on execute, then I'd bet that your file association has changed somehow (maybe editing .py files in Notepad?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;In windows explorer, if you right-click on a .py file and select Properties, on the General tab, it should say &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Type of file :&amp;nbsp; PY File (.py)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Opens with:&amp;nbsp; (If this says Notepad, there is the issue), needs to be python.&amp;nbsp; However, since I am on a 64 bit machine with server, both 32 and 64 bit versions are on my computer, so, in order to get it to run the 32 bit (so I have access to catalog paths), I have the Opens with set to idle.bat (which is this one C:\Python27\ArcGIS10.1\Lib\idlelib\idle.bat), otherwise it trys to run in 64 bit IDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;R_&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:02:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202245#M15575</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2021-12-11T10:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202246#M15576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I updated my new script with Notepath and it seems to be it&amp;nbsp; changed all the python scripts to Notepad. To convert the scripts to Python, I right click on the script and then Open With,&amp;nbsp; chosed open with&amp;nbsp; "Choose Default Program = Python". On properties, general it appears type of file = python, opens with = python.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then, I right clik on the script , Open with and both NotePad and Python are the options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I ran the script it is still calling NotePad.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any more ideas please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 09:14:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202246#M15576</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-05T09:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202247#M15577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tamadie:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Go into Windows Explorer and navigate to a python file&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Right click on the python file and select Properties from the drop-down menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Make sure the General tab then has the focus when you are in Properties&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Near the top there is Opens with: Notepad.exe&amp;nbsp; Change button - I'm thinking this is what it looks like for you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It should say Opens with: python.exe&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So hit the Change button and select python.exe, hit OK and then hit Apply in the General tab&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now when you right click on the python file you should see "Edit with IDLE" as the 2nd item in the drop-down menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;(Right now when NotePad is the default application to open you just see "Edit" as the 2nd item in the drop-down menu&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:25:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202247#M15577</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-05T12:25:54Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202248#M15578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;[PHP][/PHP]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Michael,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have done it and I can&amp;nbsp; see ""Edit with IDLE" when I right click on the python file. I ran the task and still do not complete. It is calling Notepad.&amp;nbsp; I also created the batch file, create the task and ran it. The task appears as complete but the data is not updated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any more ideas please?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;T&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202248#M15578</guid>
      <dc:creator>TAMARADIEZ</dc:creator>
      <dc:date>2013-06-05T12:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Python scripts  do  not run complete on Sheduled task</title>
      <link>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202249#M15579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can you provide your python script?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you writing to a file geodatabase on a network drive?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Jun 2013 12:57:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-scripts-nbsp-do-nbsp-not-run-complete-on/m-p/202249#M15579</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-05T12:57:58Z</dc:date>
    </item>
  </channel>
</rss>

