<?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 arcpy and arcscript methods do not work with Windows Task Scheduler in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623304#M48572</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bruce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx again.&amp;nbsp; I figured out the syntax and at this point it's working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lyr = (r"\\machine name\gisdatabase\coverages\clrmn\lib\clrmn\annotation.clrmn")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lyr being a variable.&amp;nbsp; Gisdatabase being the directory the mapped drive is connecting to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2011 20:10:13 GMT</pubDate>
    <dc:creator>eddiequinlan</dc:creator>
    <dc:date>2011-08-24T20:10:13Z</dc:date>
    <item>
      <title>Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623297#M48565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Technical Background:&amp;nbsp; Running ArcGIS 10, Python 2.6, with Windows XP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can run Python scripts using the Windows Task Scheduler that do not contain arcpy or arcscript methods.&amp;nbsp; For scripts that contain arcpy or arcscript methods, I can run using the Scheduler while I'm logged in but not when I'm logged out.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a batch job permission for my user account.&amp;nbsp; I can run other programs and scripts using the Scheduler when I'm logged out.&amp;nbsp; I have tested many ways to run the script: batch file; running as .pyw; added .py to PATHEX; changed settings in the registry for running tasks by accessing the desktop; added SetProduct method for license; and more).&amp;nbsp; None of these changes worked.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can someone help me figure out why the Arc related methods do not work with the Windows Task Scheduler while I'm logged out?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2011 20:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623297#M48565</guid>
      <dc:creator>ChadHults</dc:creator>
      <dc:date>2011-03-24T20:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623298#M48566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Arcpy consumes a license which I would guess it cannot access without being logged in as a user with permissions to be granted a license, depending on your network setup.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Mar 2011 15:36:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623298#M48566</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-03-29T15:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623299#M48567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chad did you get this to consume a license when running? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have experienced a similar problem. Can this be done on a server?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a number of Point feature classes I'd like to update by delete features&amp;gt; xy event layer&amp;gt; append.&amp;nbsp; It would be good if I can get this to run at a less busy time.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2011 01:49:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623299#M48567</guid>
      <dc:creator>GrantCrosswell</dc:creator>
      <dc:date>2011-04-15T01:49:32Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623300#M48568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You can check this out for more information.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000z000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;As far as I know, to run a script on a server you will need an ArcGIS Server license available to that machine.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2011 12:42:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623300#M48568</guid>
      <dc:creator>MathewCoyle</dc:creator>
      <dc:date>2011-04-18T12:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623301#M48569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Does anyone have a direct answer to this?&amp;nbsp; I'm having the same problem.&amp;nbsp; My .bat file with .py scripts being run from the .bat works great when I'm logged into the server and the scheduled task is set to run when the user logs in.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i check "run whether user is logged on or not", the .bat script will run but not the .py scripts within the .bat.&amp;nbsp; The .py scripts will not run even if I try to schedule them individually.&amp;nbsp; I think I understand why it's not working; just don't know how to get around the user/logged in issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 14:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623301#M48569</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-08-24T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623302#M48570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This may not apply to you, but one issue I had to deal with when writing scripts to run as scheduled tasks is how to address files that are on a server. Since you're not logged in, the system running the script won't know what your drive mappings are, so you need to replace references to networked drives with UNC conventions. For example, if your script refers to a file on your H: drive you will need to use r'\\servername\home\username\...' instead (your actual drive mappings may vary).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 17:30:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623302#M48570</guid>
      <dc:creator>BruceNielsen</dc:creator>
      <dc:date>2011-08-24T17:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623303#M48571</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bruce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx for the info.&amp;nbsp; I think you've hit on the answer.&amp;nbsp; I tested the scripts on the local C drive and they work, so if I set it up correctly with the mapped drives it should too.&amp;nbsp; I'm a bit confused on your example......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;right now my "lyr" variable = "M:\\coverages\\etc.......&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the mapped M drive is on machine "xyz" to directory "gisdatabase".&amp;nbsp; Not sure where to replace the M with the machine name.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 19:26:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623303#M48571</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-08-24T19:26:08Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623304#M48572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Bruce,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanx again.&amp;nbsp; I figured out the syntax and at this point it's working.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lyr = (r"\\machine name\gisdatabase\coverages\clrmn\lib\clrmn\annotation.clrmn")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Lyr being a variable.&amp;nbsp; Gisdatabase being the directory the mapped drive is connecting to.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sincerely,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eddie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2011 20:10:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623304#M48572</guid>
      <dc:creator>eddiequinlan</dc:creator>
      <dc:date>2011-08-24T20:10:13Z</dc:date>
    </item>
    <item>
      <title>Re: Python arcpy and arcscript methods do not work with Windows Task Scheduler</title>
      <link>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623305#M48573</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks to this thread I changed my mapped drives to UNC. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What I'm not sure about is what to do with my interoperability connection to ORacle Spatial.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Here's an example:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;gp.QuickExport_interop("'Interoperability Connections\\Connection (1) -&amp;nbsp; ORACLE8I.fdl\\TWEED.SP_CATTLE_DIP_SITE Point'", Output_Dataset_Constraints)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any ideas appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jane&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Feb 2012 00:49:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/python-arcpy-and-arcscript-methods-do-not-work/m-p/623305#M48573</guid>
      <dc:creator>JaneWickers</dc:creator>
      <dc:date>2012-02-08T00:49:23Z</dc:date>
    </item>
  </channel>
</rss>

