<?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: Walk only tables and feature classes, excluding views in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667229#M51823</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Describe.canVersion()&lt;/SPAN&gt; is returning &lt;SPAN style="font-family: courier new,courier;"&gt;True&lt;/SPAN&gt; for some of your views?&amp;nbsp; I can't say I tested all of our views, but I tested a random sampling across half a dozen enterprise geodatabases, and it always returned &lt;SPAN style="font-family: courier new,courier;"&gt;False&lt;/SPAN&gt;.&amp;nbsp; I wonder under what conditions &lt;SPAN style="font-family: courier new,courier;"&gt;canVersion&lt;/SPAN&gt;() returns &lt;SPAN style="font-family: courier new,courier;"&gt;True&lt;/SPAN&gt; for a database view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Apr 2016 20:27:03 GMT</pubDate>
    <dc:creator>JoshuaBixby</dc:creator>
    <dc:date>2016-04-19T20:27:03Z</dc:date>
    <item>
      <title>Walk only tables and feature classes, excluding views</title>
      <link>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667228#M51822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;When &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-data-access/walk.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Walking&lt;/A&gt; an Oracle 11g Enterprise Geodatabase, is there a way to tell if the table or feature class you're on is actually a view? I was hoping that the canVersion &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-functions/dataset-properties.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;dataset describe&lt;/A&gt; property would work, but apparently ArcGIS still thinks some views can be registered as versioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;I did stumble across this SQL to find all the views in the (Oracle) database.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;select owner||'.'||object_name as view_name
from all_objects
where object_type = 'VIEW'&lt;/PRE&gt;&lt;P&gt;I suppose I could just run that with &lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/python/executing-sql-using-an-arcsde-connection.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;arcpy.ArcSDESQLExecute()&lt;/A&gt;​&lt;/SPAN&gt; and then check if each object being walked is in the SQL result. Still interested in other options though.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 04:11:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667228#M51822</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-12-12T04:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: Walk only tables and feature classes, excluding views</title>
      <link>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667229#M51823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new,courier;"&gt;arcpy.Describe.canVersion()&lt;/SPAN&gt; is returning &lt;SPAN style="font-family: courier new,courier;"&gt;True&lt;/SPAN&gt; for some of your views?&amp;nbsp; I can't say I tested all of our views, but I tested a random sampling across half a dozen enterprise geodatabases, and it always returned &lt;SPAN style="font-family: courier new,courier;"&gt;False&lt;/SPAN&gt;.&amp;nbsp; I wonder under what conditions &lt;SPAN style="font-family: courier new,courier;"&gt;canVersion&lt;/SPAN&gt;() returns &lt;SPAN style="font-family: courier new,courier;"&gt;True&lt;/SPAN&gt; for a database view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 20:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667229#M51823</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-04-19T20:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Walk only tables and feature classes, excluding views</title>
      <link>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667230#M51824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the comment, Joshua. I dug a little deeper and found that about one third of our views describe as canVersion &lt;SPAN style="font-family: 'courier new', courier;"&gt;True&lt;/SPAN&gt;. I checked the sde.table_registry and all of those are also registered. None of the ones that describe as canVersion &lt;SPAN style="font-family: 'courier new', courier;"&gt;False&lt;/SPAN&gt; are registered in sde.table_registry. Most of these views are very old and were created (before my time) with sde comand lines so I guess that makes sense. Maybe it's time to recreate all of these views with the right click option in ArcCatalog. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/plain.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Apr 2016 22:28:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667230#M51824</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2016-04-19T22:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: Walk only tables and feature classes, excluding views</title>
      <link>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667231#M51825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, one of the downsides of continual and long upgrade paths, i.e., not all of the former functionality plays nice in the upgraded environment.&amp;nbsp; My guess is that you are correct, and that only views registered with the old SDE command line tools show up as version-able.&amp;nbsp; Recreating them might take a little time upfront, but having consistency in your environments has a lot of value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:32:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/walk-only-tables-and-feature-classes-excluding/m-p/667231#M51825</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-04-20T13:32:06Z</dc:date>
    </item>
  </channel>
</rss>

