<?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: RebuildIndexes in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694569#M75182</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108851"&gt;@KenGalliher1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I pass a .sde file in&amp;nbsp;&lt;SPAN&gt;as the input_database argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following code are same&amp;nbsp; running&amp;nbsp;in Notebook in ArcGIS Pro and VS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.management.RebuildIndexes(input_database=database,include_system="NO_SYSTEM",in_datasets=dataset,delta_only="ALL")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added import&amp;nbsp;arcpy&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in VS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Forrest&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 06 Apr 2026 12:50:21 GMT</pubDate>
    <dc:creator>ForrestLin</dc:creator>
    <dc:date>2026-04-06T12:50:21Z</dc:date>
    <item>
      <title>RebuildIndexes</title>
      <link>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694361#M75180</link>
      <description>&lt;P&gt;I run the following python script code in Notebook in ArcGIS Pro. It works.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;management&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;RebuildIndexes&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;input_database&lt;/SPAN&gt;&lt;SPAN&gt;=database&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;include_system&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;NO_SYSTEM&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;in_datasets&lt;/SPAN&gt;&lt;SPAN&gt;=dataset&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;delta_only&lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;But I run it in VS code:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;import&lt;/SPAN&gt; &lt;SPAN&gt;arcpy&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;arcpy.management.RebuildIndexes(input_database=database,include_system="NO_SYSTEM",in_datasets=dataset,delta_only="ALL")&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I get error:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Failed to execute. Parameters are not valid.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;ERROR 000837: The workspace is not the correct workspace type.&lt;BR /&gt;Failed to execute (RebuildIndexes).&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 03 Apr 2026 13:56:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694361#M75180</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2026-04-03T13:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: RebuildIndexes</title>
      <link>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694480#M75181</link>
      <description>&lt;P&gt;What are you passing in as the input_database argument? It should be an .sde file connected with a user that is able to rebuild indexes.&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/rebuild-indexes.htm" target="_blank"&gt;Rebuild Indexes (Data Management)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 22:47:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694480#M75181</guid>
      <dc:creator>KenGalliher1</dc:creator>
      <dc:date>2026-04-03T22:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: RebuildIndexes</title>
      <link>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694569#M75182</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/108851"&gt;@KenGalliher1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, I pass a .sde file in&amp;nbsp;&lt;SPAN&gt;as the input_database argument.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The following code are same&amp;nbsp; running&amp;nbsp;in Notebook in ArcGIS Pro and VS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;arcpy.management.RebuildIndexes(input_database=database,include_system="NO_SYSTEM",in_datasets=dataset,delta_only="ALL")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Added import&amp;nbsp;arcpy&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;in VS code.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Forrest&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Apr 2026 12:50:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/rebuildindexes/m-p/1694569#M75182</guid>
      <dc:creator>ForrestLin</dc:creator>
      <dc:date>2026-04-06T12:50:21Z</dc:date>
    </item>
  </channel>
</rss>

