<?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: List feature classes in a geodatabase using Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742941#M57409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the order in which they are stored in the database, what you see in ArcCatalog has been sorted alphabetically to assist you in finding the proper feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you wish to display the list of feature classes alphabetically in Python just call the sort method on the list of feature classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;datasetList = arcpy.ListDatasets("*", "Feature")
for dataset in datasetList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print dataset
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList = arcpy.ListFeatureClasses("*","",dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList.sort()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 12 Dec 2021 07:36:58 GMT</pubDate>
    <dc:creator>ChrisFox3</dc:creator>
    <dc:date>2021-12-12T07:36:58Z</dc:date>
    <item>
      <title>List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742938#M57406</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am attempting to generate a list of all the feature classes in a file geodatabase using the Python window in ArcCatalog. I want to list all features, by feature dataset, to deliver to the staff at my office. Is this even possible? I am running ArcInfo 10 and not well versed with Python. I have failed miserably in my feeble attempts to generate the list on my own. Any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 May 2011 19:43:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742938#M57406</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-05-25T19:43:00Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742939#M57407</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I think this is what you are asking for?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;datasetList = arcpy.ListDatasets("*", "Feature")
for dataset in datasetList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print dataset
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList = arcpy.ListFeatureClasses("*","",dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Remember to set env workspace&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:36:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742939#M57407</guid>
      <dc:creator>AnthonyFarndon</dc:creator>
      <dc:date>2021-12-12T07:36:55Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742940#M57408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick response. I've been out of the office for a week, so my apologies for the delayed response. The script worked fine, so thanks for that. I do have one question, though. It generated a list in random order, not in alphabetical order as they are shown in the geodatabase. Do you know why this happens?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again for your help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jun 2011 20:33:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742940#M57408</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-06-07T20:33:52Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742941#M57409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This is the order in which they are stored in the database, what you see in ArcCatalog has been sorted alphabetically to assist you in finding the proper feature class.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you wish to display the list of feature classes alphabetically in Python just call the sort method on the list of feature classes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;datasetList = arcpy.ListDatasets("*", "Feature")
for dataset in datasetList:
&amp;nbsp;&amp;nbsp;&amp;nbsp; print dataset
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList = arcpy.ListFeatureClasses("*","",dataset)
&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList.sort()
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcList:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:36:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742941#M57409</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2021-12-12T07:36:58Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742942#M57410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Okay, we are making progress. Thanks so much for your help. I now have a new problem: Within the list, some of the feature classes are not included. All the feature datasets are included, but randomly, the feature classes will be missing from the dataset. I am one tier below beginner when it comes to Python, so any help is greatly appreciated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 18:31:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742942#M57410</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-06-08T18:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742943#M57411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it truly random or if you run it on the same feature dataset every time are the same feature classes printed or ormitted each time? Could you send an example of what is printed and what actually exists in the geodatabase? Initially I am guessing that for example you have a topology in the feature dataset and this is printed, which is expected. ListFeatureClasses() will not return topologies. There are other data types that will not be returned as well. So you should look closely at what data types are not actually being returned in python.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Jun 2011 23:27:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742943#M57411</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2011-06-08T23:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742944#M57412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt; I want to list all features, by feature dataset, to deliver to the staff at my office.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Since you're not well-versed with Python, you may want to look into ModelBuilder 10. I never used to suggest this, but have been very impressed with the new iterator functionality.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To generate a list of anything (even recursively in a folder tree) in model builder right-click, choose Iterators and what you want to list. Then double click it and enter the particulars (ie where you want to look), and then pipe the pathname output into the Collect Values tool and run it.&amp;nbsp; This easily generates a list of with no coding; you could use Calculate Value to convert it to a string to paste into a text file or whatever.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 13:49:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742944#M57412</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-06-09T13:49:29Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742945#M57413</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I do have some topologies included in the geodatabase, however, I do not want them to print, so that is actually a positive outcome. I am referring specifically to feature classes that are not being listed. I have included an excel file with the geodatabase contents compared to the outcome of the fcList, with some formatting to easily compare results. Thanks for the help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 14:53:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742945#M57413</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-06-09T14:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742946#M57414</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Curtis,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone else actually mentioned this as a way to get familiar with Python. I think after this exercise, I will certainly try that. Thanks for your reply.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jun 2011 14:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742946#M57414</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-06-09T14:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742947#M57415</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;From your spreadsheet it looks like anytime there is a feature class that shares the same name as the feature dataset it is in, that no feature classes are returned from listfeatureclasses(). I have attempted to test the same scenario with some of my data, but couldn't reproduce the issue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Could you share your complete code? What kind of geodatabase are these feature classes stored in and do you know what version the geodabatase is?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jun 2011 15:37:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742947#M57415</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2011-06-10T15:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742948#M57416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hey Chris,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I came to the same confusing conclusion. When the feature name contains the dataset name, it kicks it and all other features in that dataset out. Strange...but probably something in my code. The features are stored in a file geodatabase, v10 (sp2). Below is the code I am using:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;import arcpy&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;arcpy.env.workspace = "D:\Lakeland_GIS\GDB\Lakeland\Lakeland.gdb"&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;datasetList = arcpy.ListDatasets("*", "Feature")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;datasetList.sort()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for dataset in datasetList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; print dataset&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList = arcpy.ListFeatureClasses("*","",dataset)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcList.sort()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in fcList:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Josh&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Jun 2011 13:29:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742948#M57416</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-06-13T13:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742949#M57417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Josh,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think your code looks fine. Is there anything else in the Cemetary Feature Dataset other than the Cemetary Feature Class? Same with Churches? I think the issue is specific to your geodatabase. Would you be able to &lt;/SPAN&gt;&lt;A href="mailto:&amp;quot;chris_fox@esri.com&amp;quot;" rel="nofollow"&gt;send me&lt;/A&gt;&lt;SPAN&gt; the GDB or if it is too large try pulling out some of the good and offending feature datasets into a new GDB to send?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Jun 2011 14:54:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742949#M57417</guid>
      <dc:creator>ChrisFox3</dc:creator>
      <dc:date>2011-06-14T14:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742950#M57418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Was there ever a resolution to this issue?&amp;nbsp; I have code essentially identical to that in this thread, and I am now experiencing the same problem with ListFeatureClasses leaving out feature classes for particular feature datasets.&amp;nbsp; I am working with a file geodatabase, v10.0 (no service packs--see note below).&amp;nbsp; In my case I have one feature dataset that has one of ~30 feature classes whose name contains the name of the feature dataset.&amp;nbsp; I get no feature classes from that dataset.&amp;nbsp; The fGDB was just thrown at me to work on, and I don't know the provenence.&amp;nbsp; I suspect, however, that it was exported from SDE.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Notably, there are other anomalies happening, too:&amp;nbsp; (1) I get no feature classes from another dataset that has just two feature classes, neither of which contains the name of the feature dataset; and (2) In a couple of other datasets, most of the feature class names end with "_MT" or other "_XX" or "XX" (like "ZM") letter combination.&amp;nbsp; In those cases the feature classes are listed, but the "_XX" (or "XX") suffix is deleted, leaving just the portion of the name to the left of the suffix.&amp;nbsp; The only other thing of note is the lack of service packs on my system.&amp;nbsp; I had SP2 installed, but that service pack introduces a bug (now reported as such by ESRI Support) that breaks a lot of my existing scripts.&amp;nbsp; I had to uninstall SP2.&amp;nbsp; Anyone have any further info on this problem.&amp;nbsp; Chris?&amp;nbsp; Thanks for the help.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2011 02:40:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742950#M57418</guid>
      <dc:creator>TiCrossman</dc:creator>
      <dc:date>2011-10-08T02:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742951#M57419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I did confirm that if a feature class had the exact same name as the feature dataset, the features were left out of the list. It would list the feature dataset as it appeared, but no feature classes were shown. I had to either change the name of the dataset or the feature class for the script to work correctly.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Oct 2011 19:39:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742951#M57419</guid>
      <dc:creator>JoshThompson</dc:creator>
      <dc:date>2011-10-14T19:39:36Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742952#M57420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just had the same issue. For my workspace I'm using a connection file string. I discovered that my connection file string had a hidden carriage return/line feed at the end. Once I removed the hidden characters, the feature classes started listing.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Dec 2012 14:54:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742952#M57420</guid>
      <dc:creator>RobertBlischke</dc:creator>
      <dc:date>2012-12-12T14:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742953#M57421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using the IGeoProcessor in .NET and have seen the same behavior.&amp;nbsp;&amp;nbsp; I am using with ArcGIS 10 SP5.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If a Feature Dataset contains a feature class with the same name,&amp;nbsp;&amp;nbsp; when I use IGeoProcessor.ListFeatureClasses(),&amp;nbsp; None of the Feature Classes within the Feature Dataset are returned.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Was there any resolution to this issue?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Apr 2013 16:36:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742953#M57421</guid>
      <dc:creator>MeleKoneya</dc:creator>
      <dc:date>2013-04-05T16:36:28Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742954#M57422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I just want to confirm that as of 10.2, this still occurs, at least using a postgresql geodatabase (10.2 ArcGIS, postgres 9.2). I was NOT able to re-create the problem using either a file or personal geodatabase.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2014 13:14:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742954#M57422</guid>
      <dc:creator>MatthewRantala</dc:creator>
      <dc:date>2014-04-02T13:14:22Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742955#M57423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;To generate a list of anything (even recursively in a folder tree) in model builder right-click, choose Iterators and what you want to list. Then double click it and enter the particulars (ie where you want to look), and then pipe the pathname output into the Collect Values tool and run it.&amp;nbsp; This easily generates a list of with no coding; you could use Calculate Value to convert it to a string to paste into a text file or whatever.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I received a request today on how you would use Calculate Value to create the list.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The key is to to connect the dataset of the iterator into the Collect Values tool, then set the output of that as an output parameter, save and close your model. Make a new model and drop your first model into that one. When you run the model you can see the string using Calculate Value with the expression: r"%Collected values%" - which I think will show a ;-delimited string of paths. If you want to print them, one per row, you can use an expression like : chr(10) + chr(10).join(r"%Collected values%".split(";"))&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See the 10.2 help article - scroll down to "Advanced Use of Model Iterators".&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/en/help/...0000007p000000"&gt;http://resources.arcgis.com/en/help/...0000007p000000&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Apr 2014 19:48:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742955#M57423</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-04-30T19:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: List feature classes in a geodatabase using Python</title>
      <link>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742956#M57424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;relevant references:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/technical-article/000011504" title="https://support.esri.com/en/technical-article/000011504"&gt;How To: Print the list of feature classes for an Enterprise geodatabase&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/thread/4151"&gt;Python List Shapefiles&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm"&gt;ListFeatureClasses—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/5893/listing-all-feature-classes-in-file-geodatabase-including-within-feature-datase/5931" title="https://gis.stackexchange.com/questions/5893/listing-all-feature-classes-in-file-geodatabase-including-within-feature-datase/5931"&gt;arcpy - Listing all feature classes in File Geodatabase, including within feature datasets? - Geographic Information Sys…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://arcpy.wordpress.com/tag/os-walk/" title="https://arcpy.wordpress.com/tag/os-walk/"&gt;os.walk | ArcPy Café&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/data-access/walk.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/data-access/walk.htm"&gt;Walk—ArcGIS Pro | Documentation&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/59350/listing-feature-classes-of-multiple-geodatabase-in-multiple-folder" title="https://gis.stackexchange.com/questions/59350/listing-feature-classes-of-multiple-geodatabase-in-multiple-folder"&gt;arcpy - Listing Feature Classes of Multiple geodatabase in Multiple Folder? - Geographic Information Systems Stack Excha…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gist.github.com/NathanW2/4577289" title="https://gist.github.com/NathanW2/4577289"&gt;gist:4577289 · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/48537/how-to-make-a-gis-inventory" title="https://gis.stackexchange.com/questions/48537/how-to-make-a-gis-inventory"&gt;arcpy - How to make a GIS inventory? - Geographic Information Systems Stack Exchange&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://gis.stackexchange.com/questions/114067/list-all-feature-datasets-feature-classes-from-a-single-geodatabase-into-csv" title="https://gis.stackexchange.com/questions/114067/list-all-feature-datasets-feature-classes-from-a-single-geodatabase-into-csv"&gt;arcpy - List all Feature datasets &amp;amp; feature classes from a single geodatabase into CSV - Geographic Information Systems …&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Aug 2020 19:49:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/list-feature-classes-in-a-geodatabase-using-python/m-p/742956#M57424</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2020-08-16T19:49:41Z</dc:date>
    </item>
  </channel>
</rss>

