<?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: How do you update on a daily basis?  Any alternative to Task Scheduler? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24186#M1265</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom.&amp;nbsp; I added another line&lt;/P&gt;&lt;P&gt;logging.error('error', exc_info=True)&lt;/P&gt;&lt;P&gt;to trace back the error as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2015 23:44:15 GMT</pubDate>
    <dc:creator>TomMagdaleno</dc:creator>
    <dc:date>2015-06-22T23:44:15Z</dc:date>
    <item>
      <title>How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24182#M1261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a number of feature classes that are set to Truncate and Append.&amp;nbsp; It works fine in ArcCatalog modelbuilder, it even works fine in Python.&amp;nbsp; The problem is when I try to tell windows task scheduler (in windows server 2008 R2) to run the python script on a daily basis it always fails.&amp;nbsp; If I put it in a batch file that tells the python script to run, it will run.&amp;nbsp; But upon checking the data it is not correct.&amp;nbsp; Some of my target features have the wrong record count.&amp;nbsp; It's as if the python script fails when run through task scheduler.&amp;nbsp; But it works fine if just double click on the python script.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 15:36:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24182#M1261</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-06-17T15:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24183#M1262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Greetings Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a few python scripts that I run nightly too.&amp;nbsp; I have put most of them into bat scripts, but python should work too.&amp;nbsp; When you create the task, which user have you specified to run the task?&amp;nbsp; Do they have permission to all of the resources that are needed to be able to complete the task?&amp;nbsp; It may also be helpful to add some logging to your scripts to see what is happening too.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2015 17:53:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24183#M1262</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-17T17:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24184#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Tom.&amp;nbsp; I haven't figured out how to add logging.&amp;nbsp; I tried to add a line to the batch file with &amp;gt;&amp;gt;logfile.txt but it did not work.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jun 2015 20:04:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24184#M1263</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-06-19T20:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24185#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can add it to your python script something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN class="kn" style="color: #007020; font-weight: bold;"&gt;import&lt;/SPAN&gt; &lt;SPAN class="nn" style="color: #0e84b5; font-weight: bold;"&gt;logging&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;logging&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;basicConfig&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="n"&gt;filename&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;'example.log'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;,&lt;/SPAN&gt;&lt;SPAN class="n"&gt;level&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="n"&gt;logging&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;DEBUG&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;logging&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;debug&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;'This message should go to the log file'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;logging&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;info&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;'So should this'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="n"&gt;logging&lt;/SPAN&gt;&lt;SPAN class="o" style="color: #666666;"&gt;.&lt;/SPAN&gt;&lt;SPAN class="n"&gt;warning&lt;/SPAN&gt;&lt;SPAN class="p"&gt;(&lt;/SPAN&gt;&lt;SPAN class="s" style="color: #4070a0;"&gt;'And this, too'&lt;/SPAN&gt;&lt;SPAN class="p"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;SPAN class="p"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="p"&gt;Tom&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 20:58:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24185#M1264</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2021-12-10T20:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24186#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Tom.&amp;nbsp; I added another line&lt;/P&gt;&lt;P&gt;logging.error('error', exc_info=True)&lt;/P&gt;&lt;P&gt;to trace back the error as well. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 23:44:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24186#M1265</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-06-22T23:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24187#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excellent!&amp;nbsp; Glad you got it working!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2015 23:46:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24187#M1266</guid>
      <dc:creator>TomSellsted</dc:creator>
      <dc:date>2015-06-22T23:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do you update on a daily basis?  Any alternative to Task Scheduler?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24188#M1267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What seemed to work was to leave the server logged in.&amp;nbsp; I lock it and close out of the remote desktop window.&amp;nbsp; It works that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 21:22:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-do-you-update-on-a-daily-basis-any-alternative/m-p/24188#M1267</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-07-23T21:22:44Z</dc:date>
    </item>
  </channel>
</rss>

