<?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 Error using Python to create a TPK basemap package in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/error-using-python-to-create-a-tpk-basemap-package/m-p/266203#M20470</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement a Python routine to update a Map Tile Package that will be used for offline map downloads with Lattitude Geographics GeoCortex product. The code snippet below was an output&amp;nbsp;from Model Builder. The model ran successfully and updated the TPK. When running in Python, the generic error code appears (which isn't helpful):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 999999: Error executing function.&lt;BR /&gt;Failed to execute (CreateMapTilePackage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for insight to see if anyone else has had this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some troubleshooting I have done without different results:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Run the model from within Python calling the model from a toolbox&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Change file paths for invalid characters&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Tried another machine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on ArcGIS Desktop 10.3.1 on a Windows 8.1 system and Python version is 2.7.8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Process: Create Map Tile Package&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateMapTilePackage_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:\\Path\\To\\MXDtoBeUsed.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\Path\\To\\TPKtobeUsed.tpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PNG"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"4"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TPKforGMAF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Basemap"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 13:04:25 GMT</pubDate>
    <dc:creator>Brian_McLeer</dc:creator>
    <dc:date>2021-12-11T13:04:25Z</dc:date>
    <item>
      <title>Error using Python to create a TPK basemap package</title>
      <link>https://community.esri.com/t5/python-questions/error-using-python-to-create-a-tpk-basemap-package/m-p/266203#M20470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to implement a Python routine to update a Map Tile Package that will be used for offline map downloads with Lattitude Geographics GeoCortex product. The code snippet below was an output&amp;nbsp;from Model Builder. The model ran successfully and updated the TPK. When running in Python, the generic error code appears (which isn't helpful):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 999999: Error executing function.&lt;BR /&gt;Failed to execute (CreateMapTilePackage).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking for insight to see if anyone else has had this problem.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some troubleshooting I have done without different results:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Run the model from within Python calling the model from a toolbox&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Change file paths for invalid characters&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;- Tried another machine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am on ArcGIS Desktop 10.3.1 on a Windows 8.1 system and Python version is 2.7.8.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; os

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Process: Create Map Tile Package&lt;/SPAN&gt;
 arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;CreateMapTilePackage_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"C:\\Path\\To\\MXDtoBeUsed.mxd"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"ONLINE"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"C:\\Path\\To\\TPKtobeUsed.tpk"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"PNG"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"4"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"TPKforGMAF"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Basemap"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 13:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-python-to-create-a-tpk-basemap-package/m-p/266203#M20470</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2021-12-11T13:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error using Python to create a TPK basemap package</title>
      <link>https://community.esri.com/t5/python-questions/error-using-python-to-create-a-tpk-basemap-package/m-p/266204#M20471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update, the issue seems to be on machines having the Background 64-bit GeoProcessing patch installed.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Aug 2018 20:52:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/error-using-python-to-create-a-tpk-basemap-package/m-p/266204#M20471</guid>
      <dc:creator>Brian_McLeer</dc:creator>
      <dc:date>2018-08-10T20:52:38Z</dc:date>
    </item>
  </channel>
</rss>

