<?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: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view? in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857655#M5591</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit of a side step, but there is also the concept of a "materialized view", which are views that reside on disk like a normal table, and that &lt;STRONG&gt;&lt;EM&gt;can&lt;/EM&gt;&lt;/STRONG&gt; be indexed as an ordinary table (at least in PostgreSQL which I am using, but I guess this is no different in SQL Server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would not be entirely surprising for the tool to attempt re-indexing a (materialized) view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Jan 2020 10:24:43 GMT</pubDate>
    <dc:creator>MarcoBoeringa</dc:creator>
    <dc:date>2020-01-30T10:24:43Z</dc:date>
    <item>
      <title>Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857649#M5585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have an SDE maintenance script that has been working flawlessly on a number databases. I recently added another DB to my maintenance list, and for this one, the script bombs&amp;nbsp;during the "arcpy.RebuildIndexes_management" step. The error is:&lt;/P&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;Could not rebuild indexes for dataset MYDB.dbo.myunsuspectingdatabaseView.[Operation Failed]&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It fails when encountering a view!&lt;/P&gt;&lt;P&gt;Any idea under which circumstances that would happen? I have lots of views in my databases. While names don't always clearly indicate what's view (and I certainly wasn't the one to create them all),&amp;nbsp;they can always be identified in SSMS under "view"&amp;nbsp;or by the lower case "dbo" schema identifier (SQL Server). I have not run into this problem with views in any other database.&lt;/P&gt;&lt;P&gt;Any idea what&amp;nbsp;might be going on here? I suppose I could create some sort of exclusion list and skip these objects but I'd like to understand what the problem is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 16:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857649#M5585</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-12-23T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857650#M5586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you run it on other DB's are you running on DBO or SDE also?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:06:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857650#M5586</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2019-12-23T20:06:21Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857651#M5587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Everything in the script and about the other databases is the same, including DBO. The only thing that changes is the SDE connection file the script uses to connect.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 20:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857651#M5587</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-12-23T20:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857652#M5588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, that is weird. I have not seen that happen before. You may want to reach out to tech support on this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 21:41:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857652#M5588</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2019-12-23T21:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857653#M5589</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My suspicion first was that something&amp;nbsp;didn't get registered correctly with GDB. I ran into that last week. Things that get created and registered, then deleted using non ArcGIS tools. Figured this was maybe some kind of orphaned object. But I can't imagine why it would&amp;nbsp;even look at something that's a view. I'll search some more through forums. Really not a major issue if i can figure out how to skip that "bad" ones.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2019 22:10:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857653#M5589</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2019-12-23T22:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857654#M5590</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wanted to provide an update on this:&lt;/P&gt;&lt;P&gt;I believe the issue was caused&amp;nbsp;by trying to create/register spatial views in a SDE database of version 10.2. This is a little used database that apparently was never update. Others are all 10.5.From&amp;nbsp;&lt;A _jive_internal="true" href="https://community.esri.com/thread/222592-cannot-register-spatial-view-with-geodatabase"&gt;this thread&lt;/A&gt;&amp;nbsp; understand that there was some changes from pre-10.5. Why this would have caused views to end up in [SDE_table_registry], I don't understand but that's what tripped up my maintenance script when&amp;nbsp;trying to rebuild/refresh indexes.&lt;/P&gt;&lt;P&gt;I haven't actually had time to update the GDB, I'll add a note about what that does.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 00:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857654#M5590</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-01-30T00:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857655#M5591</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A bit of a side step, but there is also the concept of a "materialized view", which are views that reside on disk like a normal table, and that &lt;STRONG&gt;&lt;EM&gt;can&lt;/EM&gt;&lt;/STRONG&gt; be indexed as an ordinary table (at least in PostgreSQL which I am using, but I guess this is no different in SQL Server).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it would not be entirely surprising for the tool to attempt re-indexing a (materialized) view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 10:24:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857655#M5591</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2020-01-30T10:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Why does arcpy.RebuildIndexes_management try and rebuild indexes on view?</title>
      <link>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857656#M5592</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, good point, Marco - familiar with materialized views or indexed views. However, I don't know how the arcpy reindex method is supposed to treat such indexes. In my case, there are no indexes associated with these views, at least none I can discern in SSMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 15:51:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/why-does-arcpy-rebuildindexes-management-try-and/m-p/857656#M5592</guid>
      <dc:creator>Arne_Gelfert</dc:creator>
      <dc:date>2020-01-30T15:51:52Z</dc:date>
    </item>
  </channel>
</rss>

