<?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 VectorTileLayer: rebuild_cache() works in browser, but not from Python API in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/vectortilelayer-rebuild-cache-works-in-browser-but/m-p/1636993#M11526</link>
    <description>&lt;P&gt;Greetings ESRI-Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having an issue rebuilding vector-tile-layer caches through the Python API. I have been able to rebuild them through the browser without issue (see attached image), but it fails to work when using the following script despite Python returning a "success" message.&lt;/P&gt;&lt;P&gt;When I run the script, the success message happens instantly (I assume this is normal behavior but wanted to note it). When rebuilding through the browser, the spinning wheel takes about 20 minutes to complete, so I have tried waiting for over an hour to check if the Python update worked correctly.&lt;/P&gt;&lt;P&gt;Am I missing something in my code?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN&gt;import &lt;/SPAN&gt;GIS&lt;BR /&gt;&lt;BR /&gt;gis = GIS(&lt;SPAN&gt;"pro"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;vector_tile_item = gis.content.get(&lt;SPAN&gt;"7253ad761f424cec882e6dabcdefghij"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;\t&lt;/SPAN&gt;&lt;SPAN&gt;Search returned: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;vector_tile_item.title&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;, of type '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;(vector_tile_item)&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'"&lt;/SPAN&gt;)&lt;BR /&gt;vector_tile_lyr0_manager = vector_tile_item.layers[&lt;SPAN&gt;0&lt;/SPAN&gt;].manager&lt;BR /&gt;cache_rebuild = vector_tile_lyr0_manager.rebuild_cache()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;Cache-Rebuild status: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;cache_rebuild&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Prints --&amp;gt; Cache-Rebuild status: {'id': '0bb7112a-f705-4832-a7e7-a66e27216c83', 'name': 'Building Code20250725__1655', 'status': 'Success', 'itemId': '7253ad761f424cec882e6dabcdefghij', 'type': 'Map Service', 'jobId': '00000000-0000-0000-0000-000000000000', 'message': 'success'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 28 Jul 2025 17:11:56 GMT</pubDate>
    <dc:creator>KennethEggeringAtStantec</dc:creator>
    <dc:date>2025-07-28T17:11:56Z</dc:date>
    <item>
      <title>VectorTileLayer: rebuild_cache() works in browser, but not from Python API</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/vectortilelayer-rebuild-cache-works-in-browser-but/m-p/1636993#M11526</link>
      <description>&lt;P&gt;Greetings ESRI-Community,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Having an issue rebuilding vector-tile-layer caches through the Python API. I have been able to rebuild them through the browser without issue (see attached image), but it fails to work when using the following script despite Python returning a "success" message.&lt;/P&gt;&lt;P&gt;When I run the script, the success message happens instantly (I assume this is normal behavior but wanted to note it). When rebuilding through the browser, the spinning wheel takes about 20 minutes to complete, so I have tried waiting for over an hour to check if the Python update worked correctly.&lt;/P&gt;&lt;P&gt;Am I missing something in my code?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;&lt;DIV&gt;&lt;SPAN&gt;from &lt;/SPAN&gt;arcgis.gis &lt;SPAN&gt;import &lt;/SPAN&gt;GIS&lt;BR /&gt;&lt;BR /&gt;gis = GIS(&lt;SPAN&gt;"pro"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;vector_tile_item = gis.content.get(&lt;SPAN&gt;"7253ad761f424cec882e6dabcdefghij"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;\t&lt;/SPAN&gt;&lt;SPAN&gt;Search returned: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;vector_tile_item.title&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;, of type '&lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;SPAN&gt;type&lt;/SPAN&gt;(vector_tile_item)&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;'"&lt;/SPAN&gt;)&lt;BR /&gt;vector_tile_lyr0_manager = vector_tile_item.layers[&lt;SPAN&gt;0&lt;/SPAN&gt;].manager&lt;BR /&gt;cache_rebuild = vector_tile_lyr0_manager.rebuild_cache()&lt;BR /&gt;&lt;SPAN&gt;print&lt;/SPAN&gt;(&lt;SPAN&gt;f"&lt;/SPAN&gt;&lt;SPAN&gt;Cache-Rebuild status: &lt;/SPAN&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;cache_rebuild&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;)&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;# Prints --&amp;gt; Cache-Rebuild status: {'id': '0bb7112a-f705-4832-a7e7-a66e27216c83', 'name': 'Building Code20250725__1655', 'status': 'Success', 'itemId': '7253ad761f424cec882e6dabcdefghij', 'type': 'Map Service', 'jobId': '00000000-0000-0000-0000-000000000000', 'message': 'success'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Jul 2025 17:11:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/vectortilelayer-rebuild-cache-works-in-browser-but/m-p/1636993#M11526</guid>
      <dc:creator>KennethEggeringAtStantec</dc:creator>
      <dc:date>2025-07-28T17:11:56Z</dc:date>
    </item>
  </channel>
</rss>

