<?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 Task Scheduler-Running python script to start a program in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/task-scheduler-running-python-script-to-start-a/m-p/526314#M41205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model that runs perfectly fine when i run it manually.&amp;nbsp; I created a basic task and the model runs at night.&amp;nbsp; The basic task is starting up and the model starts running, the first step to delete from file gdb and append from SDE -the delete step works but not append.&amp;nbsp; The next step is feature class to feature class to export this to a shapefile, where it bombs out and the rest of the model fails to run.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an issue with permissions or perhaps something with SDE connection?&amp;nbsp; For example i am not using the O drive path (O:\GIS) i am using the \\gisvrt\GIS paths as i am aware that can cause issues.&amp;nbsp; IF the dataset in SDE is versioned would that cause an issue?&amp;nbsp; Is there a better way to approach this task?&amp;nbsp; Such as adding the model as a python script that would eliminate some of these headaches?&amp;nbsp; I appreciate any input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Jul 2014 13:19:54 GMT</pubDate>
    <dc:creator>JakeGalyon</dc:creator>
    <dc:date>2014-07-22T13:19:54Z</dc:date>
    <item>
      <title>Task Scheduler-Running python script to start a program</title>
      <link>https://community.esri.com/t5/python-questions/task-scheduler-running-python-script-to-start-a/m-p/526314#M41205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a model that runs perfectly fine when i run it manually.&amp;nbsp; I created a basic task and the model runs at night.&amp;nbsp; The basic task is starting up and the model starts running, the first step to delete from file gdb and append from SDE -the delete step works but not append.&amp;nbsp; The next step is feature class to feature class to export this to a shapefile, where it bombs out and the rest of the model fails to run.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there an issue with permissions or perhaps something with SDE connection?&amp;nbsp; For example i am not using the O drive path (O:\GIS) i am using the \\gisvrt\GIS paths as i am aware that can cause issues.&amp;nbsp; IF the dataset in SDE is versioned would that cause an issue?&amp;nbsp; Is there a better way to approach this task?&amp;nbsp; Such as adding the model as a python script that would eliminate some of these headaches?&amp;nbsp; I appreciate any input.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jake&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:19:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/task-scheduler-running-python-script-to-start-a/m-p/526314#M41205</guid>
      <dc:creator>JakeGalyon</dc:creator>
      <dc:date>2014-07-22T13:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Task Scheduler-Running python script to start a program</title>
      <link>https://community.esri.com/t5/python-questions/task-scheduler-running-python-script-to-start-a/m-p/526315#M41206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe the scheduled job is running under another user, why don't you try to dump some info about the execution to a temp file before starting the actual work and make sure the paths actually exists, for example:&lt;/P&gt;&lt;PRE&gt;import getpass
import os.path
file = open("jobinfo.txt", "w")
file.write(" Current username:\n")
file.write(getpass.getuser())
file.write("\n Is directory existing (1=true):\n")
file.write(os.path.exists('\\gisvrt\GIS'))
file.close()
&lt;/PRE&gt;&lt;P&gt;Kindly note that you may need to check this code manually before running.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may also use the dump file technique to check if a variable is null or not and what other variables values are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Jul 2014 13:52:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/task-scheduler-running-python-script-to-start-a/m-p/526315#M41206</guid>
      <dc:creator>AhmadHisham</dc:creator>
      <dc:date>2014-07-22T13:52:59Z</dc:date>
    </item>
  </channel>
</rss>

