<?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: Can not access network location from Task Scheduler python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560213#M43808</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running the task as a different user? make sure that user has access to the location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 20:25:02 GMT</pubDate>
    <dc:creator>BenNadler</dc:creator>
    <dc:date>2015-11-02T20:25:02Z</dc:date>
    <item>
      <title>Can not access network location from Task Scheduler python</title>
      <link>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560212#M43807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have some code that runs fine when I am running it logged in. However, when I run it from task scheduler it fails. It is failing on the first line that points to a network drive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="_jivemacro_uid_14388839238868957 jive_macro_code jive_text_macro" data-renderedposition="71_8_912_16" jivemacro_uid="_14388839238868957"&gt;&lt;P&gt;os.listdir(path)&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;The code uses UNC paths&lt;/LI&gt;&lt;LI&gt;Task scheduler is set to run if the user is logged on or not&lt;/LI&gt;&lt;LI&gt;The task is set to run with the highest privileges &lt;/LI&gt;&lt;LI&gt;The run result is (0x1)&lt;/LI&gt;&lt;LI&gt;Bat files run from task scheduler work&amp;nbsp; fine when pointing to the network location, e.g. robocopy, RD, MD&lt;/LI&gt;&lt;LI&gt;Python run from a bat file works fine with the network drives &lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why this is happing?&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;Forest&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Aug 2015 18:50:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560212#M43807</guid>
      <dc:creator>forestknutsen1</dc:creator>
      <dc:date>2015-08-06T18:50:06Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access network location from Task Scheduler python</title>
      <link>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560213#M43808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you running the task as a different user? make sure that user has access to the location.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 20:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560213#M43808</guid>
      <dc:creator>BenNadler</dc:creator>
      <dc:date>2015-11-02T20:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can not access network location from Task Scheduler python</title>
      <link>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560214#M43809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Posting a specific error message is helpful.&amp;nbsp; There are lots of ways a Python function can fail.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 21:26:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/can-not-access-network-location-from-task/m-p/560214#M43809</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2015-11-02T21:26:52Z</dc:date>
    </item>
  </channel>
</rss>

