<?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: Map Tile Package Publishing Fail in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738422#M272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/8119"&gt;Jingjing Li&lt;/A&gt; &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I am running into issues publishing a tpk item as a hosted tile layer as well.&amp;nbsp; Except I am getting an error related to LOD.&amp;nbsp; Since the tpk item does not have tiles built for all LOD's it goes as far as creating the hosted tile layer but fails to actually publish the tiles.&amp;nbsp; There must be a place to specify min and max scales in the publish() parameters?&amp;nbsp; I am using 1.6.1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2019 15:03:25 GMT</pubDate>
    <dc:creator>RobertWeber</dc:creator>
    <dc:date>2019-10-16T15:03:25Z</dc:date>
    <item>
      <title>Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738412#M262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried using the following script to upload a map tile package and publish it to a hosted tile layer but it failed. The map tile package was successfully uploaded and the hosted tile layer was successfully created. However, it didn't copy the min and max scale to the service so the publishing tile process was failed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the script I used.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;SPAN style="color: #000080; font-weight: bold;"&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN style="color: #000080; font-weight: bold;"&gt;import &lt;/SPAN&gt;GIS

gis = GIS(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fwww.arcgis.com" target="_blank"&gt;https://www.arcgis.com&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;, &lt;SPAN style="color: #008080; font-weight: bold;"&gt;"username"&lt;/SPAN&gt;, &lt;SPAN style="color: #008080; font-weight: bold;"&gt;"password"&lt;/SPAN&gt;)
cm = gis.content
&lt;SPAN style="color: #000080;"&gt;print&lt;/SPAN&gt;(gis._con._token)
itemProperties = {}
data = &lt;SPAN style="color: #008080; font-weight: bold;"&gt;r"TileMapPackage\PlanningTeamArea_agspro.tpk"
&lt;/SPAN&gt;item = cm.add(itemProperties, &lt;SPAN style="color: #660099;"&gt;data&lt;/SPAN&gt;=data, &lt;SPAN style="color: #660099;"&gt;folder&lt;/SPAN&gt;=&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"test_automation"&lt;/SPAN&gt;)
&lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;item != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;None&lt;/SPAN&gt;:
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;print&lt;/SPAN&gt;(item)
&amp;nbsp;&amp;nbsp;&amp;nbsp; tiledServiceItem = item.publish()
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080; font-weight: bold;"&gt;if &lt;/SPAN&gt;tiledServiceItem != &lt;SPAN style="color: #000080; font-weight: bold;"&gt;None&lt;/SPAN&gt;:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #000080;"&gt;print&lt;/SPAN&gt;(&lt;SPAN style="color: #008080; font-weight: bold;"&gt;"published"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;that's the error message I got.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt;&amp;nbsp; File "D:/Data/Requests/Requests 2017/26_0511_AGOL_Automation_Test/Codes/addingItems.py", line 11, in &amp;lt;module&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; tiledServiceItem = item.publish()&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4299, in publish&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; serviceitem_id = self._check_publish_status(ret, folder)&lt;BR /&gt;&amp;nbsp; File "C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py", line 4519, in _check_publish_status&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; raise Exception("No job id")&lt;BR /&gt;Exception: No job id&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Any idea?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:26:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738412#M262</guid>
      <dc:creator>JingjingLi</dc:creator>
      <dc:date>2021-12-12T07:26:38Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738413#M263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is itemProperties supposed to be an empty dictionary? ie { } or a list? [ ]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 02:35:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738413#M263</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-31T02:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738414#M264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As far as I know. It is a dictionary. And according to this &lt;A href="https://developers.arcgis.com/python/sample-notebooks/publishing-packages-as-web-layers/"&gt;sample&lt;/A&gt;, I don't see what's wrong with my script.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 02:41:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738414#M264</guid>
      <dc:creator>JingjingLi</dc:creator>
      <dc:date>2017-08-31T02:41:54Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738415#M265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Apparently it is missing a jobId (whatever that is.)&lt;/P&gt;&lt;P&gt;You can find out more details by examining the script&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\ArcPro\bin\Python\envs\arcgispro-py3\lib\site-packages\arcgis\gis\__init__.py&lt;/P&gt;&lt;P&gt;the def in question is&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; def _check_publish_status(self, ret, folder):&lt;/P&gt;&lt;P&gt;its help says...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Internal method to check the status of a publishing job.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :param ret: Dictionary representing the result of a publish REST call. This dict should contain the&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; `serviceItemId` and `jobId` of the publishing job&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; :param folder: obtained from self.ownerFolder&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it failed to pass on line 4485 returning the error message on 4519...&amp;nbsp;raise Exception("No job id")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if you know what a job id is...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 03:00:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738415#M265</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-31T03:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738416#M266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yep. The job id is supposed to be generated by arcgisonline but I don't see it anywhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 03:37:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738416#M266</guid>
      <dc:creator>JingjingLi</dc:creator>
      <dc:date>2017-08-31T03:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738417#M267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I tested the same script using version 1.0.1 and it worked. I am currently running 1.2.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 03:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738417#M267</guid>
      <dc:creator>JingjingLi</dc:creator>
      <dc:date>2017-08-31T03:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738418#M268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;"services": [{&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"type": "Map Service",&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"serviceurl": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2FokWBWNlpfMx5q1bT%2Farcgis%2Frest%2Fservices%2FPlanningTeamArea_agspro%2FMapServer" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/okWBWNlpfMx5q1bT/arcgis/rest/services/PlanningTeamArea_agspro/MapServer&lt;/A&gt;&lt;SPAN&gt;",&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"size": 926219,&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"serviceItemId": "dc7ee927d0e242bc8de5200634532de1",&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;"encodedServiceURL": "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Ftiles.arcgis.com%2Ftiles%2FokWBWNlpfMx5q1bT%2Farcgis%2Frest%2Fservices%2FPlanningTeamArea_agspro%2FMapServer" rel="nofollow" target="_blank"&gt;https://tiles.arcgis.com/tiles/okWBWNlpfMx5q1bT/arcgis/rest/services/PlanningTeamArea_agspro/MapServer&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;]&lt;BR /&gt;}&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;that's the response from the publish service url, and obviously there is no jobId in it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 04:07:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738418#M268</guid>
      <dc:creator>JingjingLi</dc:creator>
      <dc:date>2017-08-31T04:07:36Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738419#M269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since no one who does this has chimed in, I would contact tech support or search &lt;STRONG&gt;&lt;A href="http://support.esri.com/en/"&gt;Esri Support Home&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;to see if any other reports along the same line have appeared.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 Aug 2017 04:35:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738419#M269</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-31T04:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738420#M270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan, did you resolved this issue?,&amp;nbsp;I'm having the same problem using the publish function of an scene layer package item in ArcGIS Online....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Sep 2017 20:09:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738420#M270</guid>
      <dc:creator>KevinEscalera2</dc:creator>
      <dc:date>2017-09-19T20:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738421#M271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kevin, did you find a solution on this front?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Trying to overwrite an existing hosted feature layer; the service definition creates and overwrites the sd on AGOL, but I can't get the script to actually use the updated SD to overwrite the feature layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 18:45:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738421#M271</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-05-02T18:45:22Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tile Package Publishing Fail</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738422#M272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/8119"&gt;Jingjing Li&lt;/A&gt; &lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;I am running into issues publishing a tpk item as a hosted tile layer as well.&amp;nbsp; Except I am getting an error related to LOD.&amp;nbsp; Since the tpk item does not have tiles built for all LOD's it goes as far as creating the hosted tile layer but fails to actually publish the tiles.&amp;nbsp; There must be a place to specify min and max scales in the publish() parameters?&amp;nbsp; I am using 1.6.1&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 15:03:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/map-tile-package-publishing-fail/m-p/738422#M272</guid>
      <dc:creator>RobertWeber</dc:creator>
      <dc:date>2019-10-16T15:03:25Z</dc:date>
    </item>
  </channel>
</rss>

