<?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: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1050000#M60862</link>
    <description>&lt;P&gt;I ran into the same problem using Pro 2.7.3.&amp;nbsp; Switching from python.exe to pythonw.exe seems to have resolved the issue.&lt;/P&gt;</description>
    <pubDate>Thu, 22 Apr 2021 10:48:20 GMT</pubDate>
    <dc:creator>MichaelVolz</dc:creator>
    <dc:date>2021-04-22T10:48:20Z</dc:date>
    <item>
      <title>Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306098#M23734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running several python scripts on a schedule on a virtual machine that has ArcGIS Pro 2.6.1 installed. I am using the python.exe from my Pro python environment to run all of the scripts in task scheduler. However ever since ArcGIS Pro version 2.5.2, I have been getting the message 0xF6 in the last run results. The crazy thing is that this happens sporadically. Sometimes the tasks run fine&amp;nbsp;and other times&amp;nbsp;they don't. All of my python scripts run fine by themselves.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has anyone else had this issue and know of a fix?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Michael&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Sep 2020 12:54:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306098#M23734</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2020-09-10T12:54:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306099#M23735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We just started experiencing the same thing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are running Pro 2.6.1 on a VM running Windows Server 2019 Datacenter. The scripts have been running fine for months, and now they are sporadically getting the 0xF6 last result message. We have a few scripts which run nightly. Each night a different script gets the message, but the others run successfully.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have you found any solution?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Oct 2020 13:17:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306099#M23735</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2020-10-26T13:17:21Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306100#M23736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Brook,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I ended up doing was importing my python scripts into an ArcGIS Pro tool box and saving them as&amp;nbsp;geoprocessing&amp;nbsp; tools. Then I scheduled them to run nightly through Pro instead of Windows Task Scheduler and now they are running fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The funny thing is scheduling geoprocessing tasks through Pro just adds a task in Windows Task Scheduler. I have no idea why it working this way&amp;nbsp;instead of directly through Windows Task Scheduler. My IT Department is stumped as well, but things are fine now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 21:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306100#M23736</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2020-10-30T21:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306101#M23737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've always found that windows task scheduler works great until it doesn't...&amp;nbsp; &amp;nbsp;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 21:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306101#M23737</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2020-10-30T21:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306102#M23738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you provide more details on how you were able to accomplish this task as I would like to try to move ArcMap scripts to Pro and maybe I can bypass using Windows Task Scheduler in the future with this same move?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did any of your scripts involve stopping services for tasks such as Rebuilding address locators?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2020 22:01:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306102#M23738</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2020-10-30T22:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306103#M23739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all. I also ran into this issue recently, and we couldn't put our finger on why it was failing. We ended up going down the same route as &lt;A href="https://community.esri.com/migrated-users/280686"&gt;Michael Torbett&lt;/A&gt;&lt;SPAN class="jive-link-profile-small jive_macro jive_macro_user"&gt; and noticed that the scheduled task in Pro was using the pythonw.exe, not python.exe. &lt;/SPAN&gt;We reverted our original task scheduler task to run pythonw.exe and since then it's been working without any problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Nov 2020 03:43:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/306103#M23739</guid>
      <dc:creator>davehorsey1</dc:creator>
      <dc:date>2020-11-10T03:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1050000#M60862</link>
      <description>&lt;P&gt;I ran into the same problem using Pro 2.7.3.&amp;nbsp; Switching from python.exe to pythonw.exe seems to have resolved the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Apr 2021 10:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1050000#M60862</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-04-22T10:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1095312#M62243</link>
      <description>&lt;P&gt;I was having this issue and getting this same error code in Task Scheduler but was properly running pythonw.exe as suggested. I found changing the setting back to "Run only when user is logged in", caused it to work. Before I had it set to run even when the user is logged out. It must be some sort of a permissions issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Sep 2021 14:45:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1095312#M62243</guid>
      <dc:creator>ISP_graynic</dc:creator>
      <dc:date>2021-09-03T14:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1139611#M63632</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/10036"&gt;@MichaelVolz&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My script wouldn't run via Windows Task Scheduler with any of the above suggestions, until I tried running it from Pro's scheduler. I loosely followed this Pro help page: &lt;A href="https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/schedule-geoprocessing-tools.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/help/analysis/geoprocessing/basics/schedule-geoprocessing-tools.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Basically, I saved my stand-alone script as a script tool with no parameters. Before you hit Run, set up the schedule. I added a bunch of &lt;EM&gt;arcpy.AddMessage() &lt;/EM&gt;print statements so I could see how it was progressing.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JaredPilbeam2_0-1643754388837.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/32888i2E76A539623691BE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JaredPilbeam2_0-1643754388837.png" alt="JaredPilbeam2_0-1643754388837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As MichaelTorbett said, Pro actually uses Windows Task Scheduler to run the geoprocessing tool. In the Task Scheduler, under the Actions tab, it used the &lt;EM&gt;pythonw.exe&lt;/EM&gt; file as the Program/script and the argument was stuffed away here: &lt;EM&gt;"C:\Users\me\AppData\Local\ESRI\ArcGISPro\Geoprocessing\ScheduledTools\WasteRecyclingReport_02012022_0325PM\task.py"&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 15:19:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1139611#M63632</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2022-02-03T15:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1170663#M64495</link>
      <description>&lt;P&gt;I notice this topic keeps getting updated with different users having the same issue and trying different approaches to the problem with mixed results.&amp;nbsp; Has anyone from ESRI ever acknowledged this issue and recommended a certain approach that entities should take to handle the issue of Scheduled Tasks that rely on Arcpy to run?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 May 2022 15:39:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1170663#M64495</guid>
      <dc:creator>JeffHaupt</dc:creator>
      <dc:date>2022-05-04T15:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1183492#M64774</link>
      <description>&lt;P&gt;I have the same problem. I had mine set to run a bat file that calls propy.bat and the script. I'm going to try the solution of running pythonw instead. I have also noticed that either arcpy or the api fails to import intermittently when running scripts in PyCharm. I think it may be related. One last observation is that scripts seem like they fail when the user gets signed out of Pro. Soon, ArcDesktop's 2.7 will no longer be viable for scripted processes. I'm extremely uneasy about this because using Pro for automation has so many issues right now. I've had automated tasks running in 2.7 without failing for months on end. With Pro, I'm lucky to go a week or two without a failure.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jun 2022 12:35:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1183492#M64774</guid>
      <dc:creator>SStopyak_BruceHarris</dc:creator>
      <dc:date>2022-06-16T12:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1185906#M64819</link>
      <description>&lt;P&gt;I just had a ticket with ESRI regarding this issue. I have the problem even if using pythonw.exe or the scheduling using ArcGIS Pro. Their response was: No support, since a Windows tool ist concerned. My objection, that ArcGIS Pro uses this tool didn't change their optinion. I have to add, that this was a ticket not directly with ESRI Inc. but with "ESRI Deutschland". They were stilll trying to be helpful, which is why&amp;nbsp;I've sent them a small test-script which they were able to run with no problems in ArcGIS Pro and Windows Task Scheduler. There was sadly nothing more they could do.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 08:09:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1185906#M64819</guid>
      <dc:creator>FlorianSteiner</dc:creator>
      <dc:date>2022-06-24T08:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1185963#M64820</link>
      <description>&lt;P&gt;Thanks for that update.&amp;nbsp; I was thinking about opening a ticket, but I'm not sure I will if this is the response that I can likely expect. The interesting thing is that I've noticed this "crash" a few times when I am testing scripts by simply running the script in the command line (no task scheduler), nothing happens for a few seconds and then a new command line appears without the python script running. I have yet to experience this issue running a python script with any standard python library.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Jun 2022 11:58:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1185963#M64820</guid>
      <dc:creator>JeffHaupt</dc:creator>
      <dc:date>2022-06-24T11:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1194109#M65028</link>
      <description>&lt;P&gt;We have run into Task Scheduler issues where sometimes the "import arcpy" statement is crashing&amp;nbsp; Python.exe.&amp;nbsp; This&amp;nbsp; is with Python3.&amp;nbsp; It is not an issue with Python2.&amp;nbsp; I have confirmed the issue on 2 Windows Server 2019 and 4 different Windows 10 computers.&lt;/P&gt;&lt;P&gt;The scripts run just fine from VS Code and the command line.&amp;nbsp; In fact these are not particularly new scripts.&lt;/P&gt;&lt;P&gt;I have one script that runs every 5 minutes.&amp;nbsp; In an hour it might crash 3~4 times on the import arcpy statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2022 19:03:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1194109#M65028</guid>
      <dc:creator>GregHorne</dc:creator>
      <dc:date>2022-07-20T19:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1194920#M65050</link>
      <description>&lt;P&gt;We just recently found out that it seems to be related to security features in our business environment. Our IT department uses "Cisco AMP" als malware protection. Temporarily deactivating this application solved the issue so far.&lt;/P&gt;&lt;P&gt;Before that, we used a workaround using batch files to check the error code and running the script again if it failed. Source:&amp;nbsp;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/error-code-246-when-attempting-to-import-arcgis/m-p/1096014/highlight/true#M6598" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/error-code-246-when-attempting-to-import-arcgis/m-p/1096014/highlight/true#M6598&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2022 13:50:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1194920#M65050</guid>
      <dc:creator>FlorianSteiner</dc:creator>
      <dc:date>2022-07-22T13:50:40Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1226639#M65965</link>
      <description>&lt;P&gt;Sorry for the long story here but this is everything I did to trouble shoot and resolve this issue over the course of a long time and I wanted to share in case anybody else is stuck as I was. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Whenever I schedule scripts to run using Windows task Scheduler, sometimes they run and sometimes they do not.&amp;nbsp; It seems intermittent and random for when they would choose to fail.&amp;nbsp; 0xF6 is the “Last Run Result” we would receive in windows task scheduler.&lt;BR /&gt;&lt;BR /&gt;Note that this problem only started after I converted my scripts from python 2.7 to 3.x and started using the pro interpreter.&amp;nbsp; 2.7 never had any problems but I need to switch to 3.x&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note also that the scripts always run no matter what when I manually run them.&amp;nbsp; This is only a scheduled task problem&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using VM server with windows datacenter 2022 but we were experiencing the same problems on an older VM running an older OS, maybe Windows Server 2016.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried switching from python.exe to pythonw.exe did not resolve the issue.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We tried setting up a batch file (.bat) to execute the scripts and then have task scheduler execute the batch file&amp;nbsp; and this had the same result.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried making lots of changes in task scheduler like Run with Highest Privileges, run whether user is logged on or not, run only when user is logged in, making sure user is logged in, etc., no combination of these had any effect.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Speaking with Esri support they recommended the following:&amp;nbsp;&lt;BR /&gt;1. Import script into .tbx as script tool then schedule to run from within Pro, this will add it to task scheduler anyway but it creates its own task with error logging.&lt;/P&gt;&lt;P&gt;2. Use a .tbx rather than .atbx (since .atbx is new and might have kinks to iron out.&lt;/P&gt;&lt;P&gt;3. Open the task in task scheduler to find the path to the new task.py and open that to see the path to where the logs are created.&amp;nbsp; Should be something like this:&amp;nbsp; &lt;EM&gt;"C:\Users\me\AppData\Local\ESRI\ArcGISPro\Geoprocessing\ScheduledTools\NameOfYourProject\task.py"&lt;BR /&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;EM&gt;4. &amp;nbsp;Then you can open the logs to see meaningful errors not just the meaningless 0xf6 in Task Scheduler.&amp;nbsp; With meaningful errors you can work to resolve the issue. &amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;So I did that and it still failed with 0xF6 and I found that in fact the logs were not being created at all which suggested that the pythonw.exe was not even being allowed to start executing since not even an empty log was created.&lt;BR /&gt;&lt;BR /&gt;So we asked IT to check the anti-virus and other security systems on the server that might be preventing it from executing.&amp;nbsp;&amp;nbsp; They found no issues.&lt;BR /&gt;&lt;BR /&gt;Finally, IT checked some local security policies.&amp;nbsp; T&lt;/EM&gt;here’s a local security policy on each server that they set to prevent bad guys from mining bitcoins I guess. &amp;nbsp;&amp;nbsp;They adjusted these to add the “logon as a batch job” permission for my user on that server.&amp;nbsp; Finally the 0xf6 errors stopped and everything runs as it should for the past week.&lt;BR /&gt;&lt;BR /&gt;So hopefully I’m not speaking too soon but this looks resolved for me.&amp;nbsp; I hope this helps somebody else.&lt;/P&gt;</description>
      <pubDate>Fri, 28 Oct 2022 15:29:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1226639#M65965</guid>
      <dc:creator>JamesHood</dc:creator>
      <dc:date>2022-10-28T15:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236385#M66195</link>
      <description>&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;Thank you for posting this.&amp;nbsp; I see you added this since I first looked at this post.&amp;nbsp; We have been battling this same exact thing since converting MANY python scripts to 3.&amp;nbsp; The intermittent-ness is driving us nuts.&amp;nbsp; I have submitted to Esri and they are basically saying it is out of their wheelhouse. I ran tests with very basic scripts with nothing but import commands.&amp;nbsp; The one without "arcpy" ran constantly without fail.&amp;nbsp; The one with "import arcpy" ran 2/3 of the time.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have yet to call IT and have them check the policy, but I want to thank you for updating this post.&amp;nbsp; You have given me one more thing to try......&amp;nbsp; This has been driving me bonkers.&amp;nbsp; We went from never having to monitor these tasks when using 2.7 to having to access the servers EVERYDAY in task scheduler to determine what didn't run.&amp;nbsp; When you have 20-30 scripts running nightly on a few servers, that is a lot more overhead for supposedly converting to something "better".&lt;/P&gt;&lt;P&gt;I'll repost if this is the solution for us.&amp;nbsp; I'm just happy to have something else to try!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 15:19:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236385#M66195</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2022-11-30T15:19:56Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236458#M66196</link>
      <description>&lt;P&gt;Thanks Carmen,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll add that since that change was made and since my post above, our server has run all of its tasks successfully, without fail, for 30 days so.&amp;nbsp; I am satisfied that we resolved the cause of our issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 17:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236458#M66196</guid>
      <dc:creator>JamesHood</dc:creator>
      <dc:date>2022-11-30T17:48:44Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236794#M66202</link>
      <description>&lt;P&gt;Continued python script sadness.&amp;nbsp; The above security policy was already set for our service account we use.&amp;nbsp;&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":frowning_face:"&gt;☹️&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Dec 2022 14:32:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1236794#M66202</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2022-12-01T14:32:14Z</dc:date>
    </item>
    <item>
      <title>Re: Last run result  message 0xF6 when trying to run a python script using Windows Task Scheduler.</title>
      <link>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1241722#M66281</link>
      <description>&lt;P&gt;Florian,&lt;/P&gt;&lt;P&gt;I sent you a private message but perhaps you never received it.&amp;nbsp; I would like to find out if your organization determine what it was with CiscoAmp that was causing the problem?&amp;nbsp; &amp;nbsp;Were you ever able to fix the problem or did you have to add the extra DOS code to every batch file that "retries to run the batch file after a pause?"&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 20:29:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/last-run-result-message-0xf6-when-trying-to-run-a/m-p/1241722#M66281</guid>
      <dc:creator>CarmenDurham</dc:creator>
      <dc:date>2022-12-15T20:29:00Z</dc:date>
    </item>
  </channel>
</rss>

