<?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 Schedule task not running because of arcpy. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208392#M16115</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have had problems with this too -- for regular users -- here's the NIM we have logged:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;[#NIM066910&amp;nbsp; A script run from Task Scheduler with the setting "run whether user is logged on or not" fails to initialize ArcPy when the license is single-use. ]&amp;nbsp; &lt;BR /&gt;No workaround identified for version 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.0, a workaround was to have a concurrent license available for arcpy to load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to hear this may be finally fixed at 10.2; it's a real show-stopper of a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will definitely test it first time I get a chance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2013 03:38:44 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2013-05-14T03:38:44Z</dc:date>
    <item>
      <title>Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208388#M16111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi everyone,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have this really simple Python script, that basically copies a file:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;
import os, shutil, time
originalSDDraft = "C:\\Esri\\test.sddraft"
localtime = time.localtime(time.time())
filesPath = os.path.dirname(originalSDDraft)
sddraftFile = filesPath + '\\' + str(localtime.tm_min) + str(localtime.tm_sec) + os.path.basename(originalSDDraft).replace('.sddraft','_copy.sddraft')
if os.path.isfile(sddraftFile):
&amp;nbsp;&amp;nbsp; os.remove(sddraftFile)
shutil.copy(originalSDDraft,sddraftFile)
&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;SPAN&gt;When I run it on a Windows Server 2008 R2 64Bit both through command line and as a scheduled task, it does what it's suppose to do.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I import the arcpy module, then the "fun" begins. I'm only able to run it as a schedule task if:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;"Run only when user is logged on" is selected.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;The user has administrator privileges.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;SPAN&gt;Does any one knows why by just importing the arcpy module the script stops to work as a scheduled task with the option "Run whether user is logged on or not" selected?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Any help would be appreciated!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 14:59:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208388#M16111</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2013-05-13T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208389#M16112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think it might have to do with the version of python you are using.&amp;nbsp; I think it might be trying to use the 64 bit python version which can only if you have it enabled for background processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are you by any chance using ArcGIS for Desktop v10.1 on this server?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Disregard above as I do not think this is the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have all my scheduled tasks set to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�"Run only when user is logged on" is selected.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;�?�The user has administrator privileges.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;on a Windows Server 2008 server machine.&amp;nbsp; This is the only way I was able to get the scheduled tasks to run properly.&amp;nbsp; I would just check have "Run only when user is logged on" and check "Run with highest privileges".&amp;nbsp; This is how my server's Scheduled Tasks have been configured and successfully running for 6 months.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 15:17:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208389#M16112</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-05-13T15:17:56Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208390#M16113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a number of scheduled process which run on 2008 Server 64 bit.&amp;nbsp; They do not use the 'run only when the user is logged on' or the 'run with highest privleges' settings.&amp;nbsp; I do make sure to put the full path to both my script and the python.exe that I want the application to run as which for me is at "C:\python27\arcgis10.1\python.exe pathToMyScript\script.py"&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 16:16:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208390#M16113</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2013-05-13T16:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208391#M16114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What type of Windows user profiles are you using? Are you perhaps in a Power User group, or are you an Administrator? We did have a bug logged for people in a Power User group, and it is not reproducible in 10.2 (just 10.1). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;NIM089224 - Arcpy does not import when logged out and running as a scheduled task and the user is in the Power User Group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, in this case, importing arcgisscripting did work.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2013 21:52:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208391#M16114</guid>
      <dc:creator>LucasDanzinger</dc:creator>
      <dc:date>2013-05-13T21:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208392#M16115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have had problems with this too -- for regular users -- here's the NIM we have logged:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;[#NIM066910&amp;nbsp; A script run from Task Scheduler with the setting "run whether user is logged on or not" fails to initialize ArcPy when the license is single-use. ]&amp;nbsp; &lt;BR /&gt;No workaround identified for version 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;At 10.0, a workaround was to have a concurrent license available for arcpy to load.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Glad to hear this may be finally fixed at 10.2; it's a real show-stopper of a bug.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I will definitely test it first time I get a chance.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 03:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208392#M16115</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-05-14T03:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208393#M16116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thank you for all your feedback.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Michael:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The user that is going to run this task can't have admin privileges, and since it runs fine when "Run only when user is logged on", I think the problem isn't permissions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tim:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've tried that way and only referencing the script, the results are the same.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lucas:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The user setting up the task is part of the Administrators group, and the user running the task is a LOCAL user not part of any particular group, besides the "Users".&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Curtis:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;That issue seems very similar to what I'm experiencing. In the server I have both AG Server and AG Desktop 10.1 installed with single use license. What changes you had to make, besides the license, to run the tasks?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to give a summary of the situation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Enviroment:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt;Server is a VM, with Windows Server 2008 R2 SP1, with 2GB of RAM&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt;It has installed both AG Server and Desktop 10.1, with SP1&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;BR /&gt;&lt;SPAN&gt;Task Config that works:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24283[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Task configs that don't work:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24284[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]24282[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I've also included a zipped file with the python scripts, and the .bat file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any more ideas are appreciated, and you if need any more details let me know.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Tiago&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2013 10:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208393#M16116</guid>
      <dc:creator>TiagoRibeiro</dc:creator>
      <dc:date>2013-05-14T10:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208394#M16117</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That issue &lt;BR /&gt;[indent]&lt;SPAN style="font-family:Courier New;"&gt;[#NIM066910 A script run from Task Scheduler with the setting "run whether user is logged on or not" fails to initialize ArcPy when the license is single-use.]&amp;nbsp; &lt;/SPAN&gt;[/indent]&lt;BR /&gt;seems very similar to what I'm experiencing. In the server I have both AG Server and AG Desktop 10.1 installed with single use license. What changes you had to make, besides the license, to run the tasks? &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; (I have exchanged a private message with tribeiro about this.)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just to update everyone, we've determined that:&lt;/SPAN&gt;&lt;BR /&gt;&lt;UL&gt;&lt;BR /&gt;&lt;LI&gt; This issue exists in ArcGIS 10.0 and 10.1.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; At 10.0 only, if you modify the Desktop license configuration from Single-Use to Concurrent licensing, the scheduled task will run even the user is not logged in.&lt;/LI&gt;&lt;BR /&gt;(This change equires running ArcGIS Administrator with elevated privileges. I have a VBScript script that can do this by modifying registry keys, but it also requires elevated privileges to run.)&lt;BR /&gt;&lt;LI&gt; The 10.0 workaround &lt;STRONG&gt;does not work at 10.1.&lt;/STRONG&gt; Our USGS user that was having this problem is doing a less optimal workaround: leaving her workstation logged on at night (screen locked of course!) so her scheduled task can successfully launch arcpy.&lt;/LI&gt;&lt;BR /&gt;&lt;LI&gt; Esri thinks this is reportedly fixed at 10.2 and I am trying to get around to testing it.&lt;/LI&gt;&lt;BR /&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 May 2013 15:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208394#M16117</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-05-16T15:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208395#M16118</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm now moving my scripts to 10.1 SP1 on our production servers as part of an upgrade.&amp;nbsp; All of my scripts used to work fine.&amp;nbsp; Now when they're supposed to launch over night they fail with code 0xC0000005 (Seems to be an access violation).&amp;nbsp; These must work at 10.1 and can't rely on an upgrade to 10.2.&amp;nbsp; A script without arcpy in it works fine.&amp;nbsp; A script with the code below fails with the fault listed above.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
import arcpy
print "Hello World"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you made any progress on this issue.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208395#M16118</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2021-12-11T10:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208396#M16119</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Have you made any progress on this issue.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I viewed the NIM and it now states the workaround to use arcgisscripting. Esri tech support may be able to help you modify your script to do what you need to do using arcgisscripting instead of arcpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recommend contacting tech support, and be sure and reference NIM089224.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]25475[/ATTACH]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 16:58:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208396#M16119</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2013-06-25T16:58:59Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208397#M16120</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Modifying to use arcgisscripting I'll lose all of the performance benefits I've gained with faster cursors and some new tools.&amp;nbsp; That's an unfortunate answer from them.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying the 'Run with highest privledges' option selected which seems to have a positive impact (combined with run if user is logged in or not).&amp;nbsp; It's allowed me to run my scripts, but it may only be possible because my service running account is in the local admin group.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'd be curious what requires the extra privledges.&amp;nbsp; The scripts I'm using should only need to read files, possibly aside from compiling the py files into pyc files.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 17:36:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208397#M16120</guid>
      <dc:creator>TimDine</dc:creator>
      <dc:date>2013-06-25T17:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208398#M16121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Tim:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You wriote "I'm trying the 'Run with highest privledges' option selected which seems to have a positive impact (combined with run if user is logged in or not). It's allowed me to run my scripts, but it may only be possible because my service running account is in the local admin group."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an issue with the service running account being in the local admin group?&amp;nbsp; I have had my server that runs scheduled tasks set up this way for years without incident.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Jun 2013 17:49:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208398#M16121</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2013-06-25T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208399#M16122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;of course, with the "new" security after XP, you need to make sure your group policy allows it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have to remain logged in for my scheduled task to work as the GroupPolicy is set to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Network access: Do not allow storage of passwords and credentials for network authentication.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If this is set, you are not allowed to run when not logged in (you can, but very limited and local resources only, no network access).&amp;nbsp; My workaround is to remain logged in, at least, until I can get IT to change the policy for that box.&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, 25 Jun 2013 18:26:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208399#M16122</guid>
      <dc:creator>RhettZufelt</dc:creator>
      <dc:date>2013-06-25T18:26:19Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208400#M16123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Modifying to use arcgisscripting I'll lose all of the performance benefits I've gained with faster cursors and some new tools.&amp;nbsp; That's an unfortunate answer from them.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcgisscripting is still there - arcpy is just a handier way to do things, and it gives you intellisense. For example to get at the 10.1 cursors, this seems to get you there. With some help from tech support you can probably rewrite your script to use arcgisscripting.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; import arcgisscripting
&amp;gt;&amp;gt;&amp;gt; gp = arcgisscripting.create(10.1)
&amp;gt;&amp;gt;&amp;gt; from arcgisscripting import da
&amp;gt;&amp;gt;&amp;gt; dir(da)
['Domain', 'Editor', 'ExtendTable', 'FeatureClassToNumPyArray', 'InsertCursor', 'ListDomains', 'ListReplicas', 'ListSubtypes', 'List
Versions', 'NumPyArrayToFeatureClass', 'NumPyArrayToTable', 'Replica', 'SearchCursor', 'TableToNumPyArray', 'UpdateCursor', 'Version
', 'Walk', '__doc__', '__name__', '__package__']
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Interestingly, arcpy.mapping ( a main thing we would want to do in a background task, say for a map that refreshes on a schedule ) does not seem accessible this way:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
&amp;gt;&amp;gt;&amp;gt; from arcgisscripting import mapping
Traceback (most recent call last):
&amp;nbsp; File "&amp;lt;stdin&amp;gt;", line 1, in &amp;lt;module&amp;gt;
ImportError: cannot import name mapping
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:17:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208400#M16123</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-12-11T10:17:46Z</dc:date>
    </item>
    <item>
      <title>Re: Python Schedule task not running because of arcpy.</title>
      <link>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208401#M16124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; Tim:&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;You wriote "I'm trying the 'Run with highest privledges' option selected which seems to have a positive impact (combined with run if user is logged in or not). It's allowed me to run my scripts, but it may only be possible because my service running account is in the local admin group."&amp;nbsp; &lt;BR /&gt; &lt;BR /&gt;Is there an issue with the service running account being in the local admin group? I have had my server that runs scheduled tasks set up this way for years without incident.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This completely solved our problem. The key was &lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;'Run with the highest privileges'&lt;/STRONG&gt;&lt;SPAN&gt; setting. The headless service account is not part of our local Administrators group. See picture below. We are running ArcGIS Desktop 10.1 SP1 advanced (with concurrent licenses setup on a remote license server)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="color:&amp;quot;#FF0000&amp;quot;;"&gt;The arcgisscripting.create() option is not viable as we are using some of the 10.0 and 10.1 capabilities (like the da module and other script tools)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Appreciate the post on this. It saved us a lot of time!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Sep 2013 20:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-schedule-task-not-running-because-of-arcpy/m-p/208401#M16124</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2013-09-23T20:53:13Z</dc:date>
    </item>
  </channel>
</rss>

