<?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: Using Export Tile Cache in scheduled job has rights issues in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248636#M19202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now found that it will work if the scheduled job option is set to "Run only when user is logged in".&amp;nbsp; But this of course does not help me much.&amp;nbsp; There is some security option deep in there that is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Mar 2015 21:09:48 GMT</pubDate>
    <dc:creator>DougBrowning</dc:creator>
    <dc:date>2015-03-23T21:09:48Z</dc:date>
    <item>
      <title>Using Export Tile Cache in scheduled job has rights issues</title>
      <link>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248635#M19201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am running this command in a python script&lt;/P&gt;&lt;P&gt;arcpy.ExportTileCache_management(unzipedTPK, pathTPK, justfilenameTPK, "TILE_PACKAGE", "#", "#", boundryFile)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine if I run it in PyScripter.&amp;nbsp; It also runs fine if I run it from a batch file.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if I schedule that batch file with Task Scheduler it dies with this error.&lt;/P&gt;&lt;P&gt;ExecuteError: ERROR 001132: Failed to export cache&lt;/P&gt;&lt;P&gt;ERROR 001485: Failed to create tile package : \\hnrgad\vancouver\GISFiles\Projects\MobileMap Data\CurrentBuilds\BC\TPK\BCSettings.tpk&lt;/P&gt;&lt;P&gt;Failed to execute (ExportTileCache).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I found old bugs that it does not pick of the user correctly but nothing that is recent.&amp;nbsp; It seems to die on trying to create a subdir.&amp;nbsp; It will create the main names dir and conf.cdi, conf.properties, and conf.xml but not anything else.&amp;nbsp; The task seems fine and has rights in every other part of the script (runs Create Tile Package to same location fine).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user is in the Admin group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;10.3, Windows 7 Enterprise&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 18:37:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248635#M19201</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2015-03-23T18:37:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Export Tile Cache in scheduled job has rights issues</title>
      <link>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248636#M19202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have now found that it will work if the scheduled job option is set to "Run only when user is logged in".&amp;nbsp; But this of course does not help me much.&amp;nbsp; There is some security option deep in there that is wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 21:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248636#M19202</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2015-03-23T21:09:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using Export Tile Cache in scheduled job has rights issues</title>
      <link>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248637#M19203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also tried Psexec with no luck. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For now I have to leave the user logged in and just pray that no one logs it off or a reboot does not happen.&amp;nbsp; (It runs over the weekend so I can not babysit it.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Mar 2015 23:19:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/using-export-tile-cache-in-scheduled-job-has/m-p/248637#M19203</guid>
      <dc:creator>DougBrowning</dc:creator>
      <dc:date>2015-03-23T23:19:33Z</dc:date>
    </item>
  </channel>
</rss>

