<?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: Create Map Tile Package - Can't Set Required Description in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142654#M4856</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you get a chance, be sure to mark this thread as answered to help other users in the community.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 28 Aug 2014 13:59:50 GMT</pubDate>
    <dc:creator>JakeSkinner</dc:creator>
    <dc:date>2014-08-28T13:59:50Z</dc:date>
    <item>
      <title>Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142651#M4853</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 12pt;"&gt;Hi all&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;In ArcGIS 10.2 &lt;/SPAN&gt;&lt;SPAN style="font-family: verdana, geneva;"&gt;I'm trying to use the GP tool "Create Map Tile Package" or similarly with ArcPy &lt;EM&gt;arcpy.CreateMapTilePackage_management()&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 12pt;"&gt;in either case it errors with:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;Map description property must be set&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 12pt;"&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;Failed to execute (CreateMapTilePackage)&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: verdana, geneva; font-size: 12pt;"&gt;I don't see how or where to set the description in either the tool or with the python syntax given:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: 'courier new', courier; font-size: 12pt;"&gt;CreateMapTilePackage_management (in_map, service_type, output_file, format_type, level_of_detail, {service_file}, {summary}, {tags})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: verdana, geneva; font-size: 12pt;"&gt;This works just fine in ArcMap using the menu - &lt;EM&gt;File &amp;gt; Share As &amp;gt; Tile Package&lt;/EM&gt; because I can enter the required description field in the dialog.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; font-family: Arial, Helvetica, sans-serif; font-size: 12pt;"&gt;Here is the syntax I tried in ArcPy:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;elevation_mxd = "C:\\sub\\elevation.mxd"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;elevation_tpk = "C:\\sub\\elevation.tpk"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;# Process: Create Map Tile Package&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; font-size: 12pt;"&gt;arcpy.CreateMapTilePackage_management(elevation_mxd, "ONLINE", elevation_tpk, "PNG", "3", "", "summary", "tag tag2")&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 11:20:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142651#M4853</guid>
      <dc:creator>KenBragg1</dc:creator>
      <dc:date>2014-08-28T11:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142652#M4854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ken,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will need to use the arcpy.mapping module and update the description using the &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00s30000000n000000"&gt;MapDocument&lt;/A&gt; object.&amp;nbsp; Here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14092260084936346 jive_text_macro" jivemacro_uid="_14092260084936346"&gt;
&lt;P&gt;mxd = arcpy.mapping.MapDocument(r"C:\temp\python\Airports.mxd")&lt;/P&gt;
&lt;P&gt;mxd.description = "Philadelphia Airports"&lt;/P&gt;
&lt;P&gt;mxd.save()&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should then be able to successfully create your map tile package.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 11:40:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142652#M4854</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-08-28T11:40:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142653#M4855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks very much Jake, that did the trick.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 13:44:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142653#M4855</guid>
      <dc:creator>KenBragg1</dc:creator>
      <dc:date>2014-08-28T13:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142654#M4856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you get a chance, be sure to mark this thread as answered to help other users in the community.&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Aug 2014 13:59:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142654#M4856</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2014-08-28T13:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142655#M4857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jake,&lt;/P&gt;&lt;P&gt;I fortunately found this topic but I got an issue while I count not save the map description which I got an error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "&amp;lt;string&amp;gt;", line 254, in run_nodebug&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\DEV\CWPP\TileMap.py", line 23, in &amp;lt;module&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; College_station_mxd.save()&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\utils.py", line 182, in fn_&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return fn(*args, **kw)&lt;/P&gt;&lt;P&gt;&amp;nbsp; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\_mapping.py", line 850, in save&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; return convertArcObjectToPythonObject(self._arc_object.save(*gp_fixargs((), True)))&lt;/P&gt;&lt;P&gt;IOError: MapDocObject: Unable to save.&amp;nbsp; Check to make sure you have write access to the specified file and that there is enough space on the storage device to hold your document.&lt;/P&gt;&lt;P&gt;I don't know how can solve this. Any idea?Thanks,&lt;/P&gt;&lt;P&gt;Peter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2016 21:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142655#M4857</guid>
      <dc:creator>PingYang</dc:creator>
      <dc:date>2016-03-07T21:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Create Map Tile Package - Can't Set Required Description</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142656#M4858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ping,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure the MXD is not open when you execute your code. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 13:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/create-map-tile-package-can-t-set-required/m-p/142656#M4858</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-03-08T13:09:40Z</dc:date>
    </item>
  </channel>
</rss>

