<?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: Export geodatabase data to excel in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807009#M2964</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. This appears to be exactly what I need right now. I do not know Python properly but when I open the Python window in ArcCatalog, under the 'Geoprocessing' menu, I add this code to the blank window (after the &amp;gt;&amp;gt;&amp;gt;) then changed the line at env.workspace to point to my gdb but then what? I hit enter (to execute) but nothing happens? How do I find if it did anything or see the results as a list (as shown above)? I think I just don't know how to run Python. Any tips please would be great! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2018 00:30:00 GMT</pubDate>
    <dc:creator>ERIASGroup</dc:creator>
    <dc:date>2018-08-01T00:30:00Z</dc:date>
    <item>
      <title>Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806997#M2952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to export, to excel, a list of all feature dataset and feature classes?&amp;nbsp; Essentially everything that is in the geodatabase.&amp;nbsp; I can export to XML, but how would I get it to excel?&amp;nbsp; And, how could I tell where there feature classes or tables that where installed when the LGIM was installed, but do not contain any data? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 17:51:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806997#M2952</guid>
      <dc:creator>JohnMellor__GISP</dc:creator>
      <dc:date>2016-08-08T17:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806998#M2953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can print out this information using python.&amp;nbsp; Below is an example.&amp;nbsp; You could add on to this if you want to write it to an excel spreadsheet.&amp;nbsp; To do this, you could use the &lt;A href="http://xlsxwriter.readthedocs.io/" rel="nofollow noopener noreferrer" target="_blank"&gt;XlsxWriter &lt;/A&gt;module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
from arcpy import env
env.workspace = r"D:\Temp\Python\Redlands.gdb"

for dataset in arcpy.ListDatasets("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; print dataset
&amp;nbsp;&amp;nbsp;&amp;nbsp; for fc in arcpy.ListFeatureClasses("*", "", dataset):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count = arcpy.GetCount_management(fc).getOutput(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print "\t" + fc + ": " + str(count)

for fc in arcpy.ListFeatureClasses("*"):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count = arcpy.GetCount_management(fc).getOutput(0)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print fc + ": " + str(count)&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example of output written from above script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Screen1.PNG" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/214705_Screen1.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:25:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806998#M2953</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2021-12-12T09:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806999#M2954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, thanks Jake, this looks like what I need. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Aug 2016 20:22:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/806999#M2954</guid>
      <dc:creator>JohnMellor__GISP</dc:creator>
      <dc:date>2016-08-08T20:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807000#M2955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also try &lt;A href="http://www.arcgis.com/home/item.html?id=9ea218ff575f4a5195e01a2cae03a0ae"&gt;x-ray for arccatalog&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 05:11:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807000#M2955</guid>
      <dc:creator>MikeCusi</dc:creator>
      <dc:date>2016-08-09T05:11:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807001#M2956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've used that XRay before; but it didn't seem to behave the way I needed it. How would you suggest I use XRay to get to my result? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 13:03:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807001#M2956</guid>
      <dc:creator>JohnMellor__GISP</dc:creator>
      <dc:date>2016-08-09T13:03:31Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807002#M2957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;XRay is what I use as well.&amp;nbsp; It provides a very detailed output of all feature classes, subtypes, domains, feature datasets, and their relationships.&amp;nbsp; It's very handy and is quick to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 13:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807002#M2957</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2016-08-09T13:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807003#M2958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi John,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the way I use XRay:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Select the geodatabase you want to export the information for and hit the button highlighted below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/214851_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I find the GIS Datasets and GIS Domains output the most useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 13:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807003#M2958</guid>
      <dc:creator>JenniferMcCall4</dc:creator>
      <dc:date>2016-08-09T13:14:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807004#M2959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If those suggestions don't get what you are aiming to get, another option is my &lt;A href="https://community.esri.com/migration-blogpost/55043" target="_blank"&gt;Python addin for data inventory and “broken-link” repair.&lt;/A&gt;​&amp;nbsp;&amp;nbsp;&amp;nbsp; ....the second button will inventory everything, and output a .txt, .csv, and .xls&amp;nbsp; with a date/time stamp in the file names, so you can run and compare.&amp;nbsp; I don't have a record count, but may be something I will add.&amp;nbsp; I'm actually trying to get an addin for inventorying items in a number of ways, including what's within mxd's (in a goal to know what services I need to shutdown to update a fgdb).&lt;/P&gt;&lt;P&gt;Anyway, the .xls output for the inventory button looks like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="214872" alt="" class="image-1 jive-image" height="194" src="https://community.esri.com/legacyfs/online/214872_pastedImage_0.png" style="width: 443px; height: 193.767px;" width="443" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;purposely left simple.&lt;/P&gt;&lt;P&gt;I think I've made a few changes since I posted the addin, so he is some code that should be able to run as a standalone....just need to change the workspace you want to inventory (need write access to same folder for the output)&amp;nbsp; (I can upload the .py if this doesn't work)&amp;nbsp; Even this was last worked on a while ago, so could be cleaned up a bit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;'''
---------------------------------------------------------------------------
Tool:&amp;nbsp;&amp;nbsp;&amp;nbsp; FCInventoryReport 
Toolbox: CheckAndFixLinks.tbx
Script:&amp;nbsp; 2_InventoryFCs.py
Purpose: 
&amp;nbsp;&amp;nbsp; This script will walk thru all the feature classes within a folder 
&amp;nbsp;&amp;nbsp; and create a text report, comma-delimted and an Excel .xls file.
&amp;nbsp;&amp;nbsp; Include shapes, coverages, rasters, tables, connections, and FGDB

&amp;nbsp;&amp;nbsp; Column names:&amp;nbsp; FType&amp;nbsp;&amp;nbsp;&amp;nbsp; FCname&amp;nbsp;&amp;nbsp;&amp;nbsp; FullPath
-------------------------------------------------------------------------------
 Author:&amp;nbsp; Rebecca Strauch - ADFG-DWC-GIS
 Created on: 4/10/2013 
&amp;nbsp;&amp;nbsp; last modification: August 10, 2015

 Description: To create list of the features classes within a folder, including
&amp;nbsp;&amp;nbsp; coverages (pts, poly, arc, anno), shapes, grids and FGDB data. Outputs list
&amp;nbsp;&amp;nbsp; to a text report file (not much formatting) in the folder being scanned named
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FCInventoryYYYYMMDD_HHMM.txt
&amp;nbsp;&amp;nbsp; with the date and time as part of the name. This should always create
&amp;nbsp;&amp;nbsp; a new file, unless you run it twice within same minute.&amp;nbsp; 

&amp;nbsp;&amp;nbsp; Must have write permissions on the output folder in question.

&amp;nbsp;&amp;nbsp; Known issue (with built-in workaround): for some reason some, but not&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; all (ArcInfo) grids want to duplicate the folder name before the 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; describe. I'm now checking to make sure it exists, if not, I am removing
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; the duplicate portion, and letting it run.&amp;nbsp; Seems to work.
------------------------------------------------------------------------------
 Arguments:&amp;nbsp; 
&amp;nbsp;&amp;nbsp; [0] theWorkspace: Folder/directory to search (walk thru, includes subfolders)
&amp;nbsp;&amp;nbsp; [1] outFile: output base filename, default GDBList, script appends YYYYMMDD_HHMM

 Updates:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
---------------------------------------------------------------------------
'''
# Import modules
import arcpy
import os
from _miscUtils import *
from _gpdecorators import *

def myMsgs(message):
&amp;nbsp; arcpy.AddMessage(message)
&amp;nbsp; print(message)


# catch_errors decorator must preceed a function using the @ notation.
@catch_errors
def main():
&amp;nbsp; """
&amp;nbsp; Main function to create text file report of all Feature Classes in folder
&amp;nbsp; """
&amp;nbsp; #setup environment
&amp;nbsp; arcpy.env.overwriteOutput = True

&amp;nbsp; # Script arguments...&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; """ If running as standalone, hardcode theWorkspace and outFile&amp;nbsp; """
&amp;nbsp; theWorkspace = arcpy.GetParameterAsText(0)
&amp;nbsp; if not theWorkspace:
&amp;nbsp;&amp;nbsp;&amp;nbsp; theWorkspace = r"C:\__temp" # r"D:\_dataTest"&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; outFile = arcpy.GetParameterAsText(1)
&amp;nbsp; if not outFile:
&amp;nbsp;&amp;nbsp;&amp;nbsp; outFile = "FCInventory" 
&amp;nbsp; # Create new output name name tagged with YYYYMMDD_HHMM
&amp;nbsp; fileDateTime = curFileDateTime()
&amp;nbsp; currentDate = curDate()

&amp;nbsp; # Create new output name tagged with YYYYMMDD_HHMM
&amp;nbsp; outfileTXT = os.path.join(theWorkspace, outFile) + fileDateTime + ".txt" #theWorkspace + "\FCInventory" + fileDateTime + ".txt"
&amp;nbsp; outFileCSV = os.path.join(theWorkspace, outFile) + fileDateTime + ".csv"&amp;nbsp; #theWorkspace + "\FCInventory" + fileDateTime + ".csv"
&amp;nbsp; outFileXLS = os.path.join(theWorkspace, outFile) + fileDateTime + ".xls"
&amp;nbsp; arcpy.AddMessage(theWorkspace + ", " + outfileTXT)
&amp;nbsp; reportFile = open(outfileTXT, 'w')
&amp;nbsp; csvFile = open(outFileCSV, 'w')
&amp;nbsp; arcpy.AddMessage(&amp;nbsp; "File {0} is open? {1}".format(outfileTXT, str(not reportFile.closed)))
&amp;nbsp; arcpy.AddMessage(&amp;nbsp; "File {0} is open? {1}".format(str(outFileCSV), str(not csvFile.closed)))
&amp;nbsp; #arcpy.AddMessage(&amp;nbsp; "File " + str(csvFile) + " is closed?&amp;nbsp; " + str(csvFile.closed))&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp; arcpy.AddMessage("Writing the report to: " + outfileTXT + " and " + outFileCSV)

&amp;nbsp; outText = "List of all GIS data in " + theWorkspace + " on " + currentDate + '\n'
&amp;nbsp; outText += "&amp;nbsp; Includes coverages (pts, poly, arc, anno), shapes, and FGDB data." + '\n'
&amp;nbsp; outText += "-----------------------------------------------------" + '\n'

&amp;nbsp; reportFile.write(outText)
&amp;nbsp; csvFile.write("FType, FCname, FullPath\n")

&amp;nbsp; def inventory_data(workspace, datatypes):
&amp;nbsp;&amp;nbsp;&amp;nbsp; for path, path_names, data_names in arcpy.da.Walk(
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; workspace, datatype=datatypes):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if "tic" in data_names:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; data_names.remove('tic')
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; for data_name in data_names:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcName = os.path.join(path, data_name)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddMessage("Show for debug: " + fcName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if not arcpy.Exists(fcName):
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; # workaround for raster folder name duplicating
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fcName = os.path.dirname(fcName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; desc = arcpy.Describe(fcName)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddMessage("debug, desc it to me: " + desc.dataType)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; yield [path, data_name, desc.dataType] #, desc]

&amp;nbsp; i = 0
&amp;nbsp; for feature_class in inventory_data(theWorkspace, "FeatureClass"):
&amp;nbsp;&amp;nbsp;&amp;nbsp; """ last modified data not working for gdb or FC in fgdb ..."""
&amp;nbsp;&amp;nbsp;&amp;nbsp; #lastMod = time.strftime('%m/%d/%Y %H:%M', time.localtime(os.path.getmtime(feature_class[0])))
&amp;nbsp;&amp;nbsp;&amp;nbsp; if i == 0:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddMessage("{0}&amp;nbsp; modified: {1}".format(feature_class[0], lastMod)) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("{0}".format(feature_class[0]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outText = ' ' + feature_class[0] + '\n'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportFile.write(outText)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; path0 = feature_class[0]
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i =+ 1
&amp;nbsp;&amp;nbsp;&amp;nbsp; elif not path0 == feature_class[0]:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; #arcpy.AddMessage("{0}&amp;nbsp; modified: {1}".format(feature_class[0], lastMod)) 
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("{0}".format(feature_class[0]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outText = ' ' + feature_class[0] + '\n'
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; reportFile.write(outText)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; i = 0
&amp;nbsp;&amp;nbsp;&amp;nbsp; if feature_class[2] == "ShapeFile":
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; shpfile = arcpy.os.path.join(feature_class[0], feature_class[1])
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; lastMod = time.strftime('%m/%d/%Y %H:%M', time.localtime(os.path.getmtime(shpfile)))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0}: {1} modified: {2}".format(feature_class[2], feature_class[1], lastMod))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outText = ("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0}: {1} modified: {2}\n".format(feature_class[2], feature_class[1], lastMod))
&amp;nbsp;&amp;nbsp;&amp;nbsp; else:
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.AddMessage("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0}: {1}".format(feature_class[2], feature_class[1]))
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; outText = ("&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {0}: {1}\n".format(feature_class[2], feature_class[1]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; reportFile.write(outText)
&amp;nbsp;&amp;nbsp;&amp;nbsp; csvFile.write("{},{}, {}\n".format(feature_class[2], feature_class[1], feature_class[0]))
&amp;nbsp;&amp;nbsp;&amp;nbsp; 

&amp;nbsp; reportFile.close()
&amp;nbsp; csvFile.close()
&amp;nbsp; arcpy.AddMessage(&amp;nbsp; "File {0} is closed? {1}".format(outfileTXT, str(reportFile.closed)))
&amp;nbsp; arcpy.AddMessage(&amp;nbsp; "File {0} is closed? {1}".format(outFileCSV, str(csvFile.closed)))

&amp;nbsp; # Creates Excel .xls file from the .csv ....easier to edit (ver 1)
&amp;nbsp; arcpy.TableToExcel_conversion(outFileCSV, outFileXLS) 

&amp;nbsp; arcpy.AddMessage('!!! Success !!!&amp;nbsp; ')

# End main function

if __name__ == '__main__':
&amp;nbsp; main()&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: uploaded my&amp;nbsp;&amp;nbsp; _miscUtils and _gpdecorators in case that throws people off. The code above can be modified to not use them...but I use them for convenience, and often forget to remove before posting other code.&amp;nbsp; Just drop the two .py in the same folder as the script above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 09:25:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807004#M2959</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2021-12-12T09:25:06Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807005#M2960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Mike, Jennifer &amp;amp; Rebecca; all good options, the only thing about XRay is all the different worksheets; and the only thing about Rebecca's inventory is no count.&amp;nbsp; Jake has the best match to what I am looking for in a solution, however, I'm not getting the script to run properly.&amp;nbsp; I am just starting with Python and am thinking I don't have the workspace set correctly. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 16:57:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807005#M2960</guid>
      <dc:creator>JohnMellor__GISP</dc:creator>
      <dc:date>2016-08-09T16:57:33Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807006#M2961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jake, I think you are pointing to a file geodatabase, where I'm trying to point to my sde geodatabase.&amp;nbsp; Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 17:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807006#M2961</guid>
      <dc:creator>JohnMellor__GISP</dc:creator>
      <dc:date>2016-08-09T17:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807007#M2962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you a connection to the sde geodatabase under 'Database Connections'?&amp;nbsp; If so, try the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14707625943543511 jive_text_macro" data-renderedposition="60_8_1332_16" jivemacro_uid="_14707625943543511"&gt;&lt;P&gt;env.workspace = r"Database Connections\&amp;lt;database name&amp;gt;.sde"&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will want to replace &amp;lt;database name&amp;gt; with what you have under 'Database Connections' in your Catalog window.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Aug 2016 17:10:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807007#M2962</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2016-08-09T17:10:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807008#M2963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;John - I tested Jake's Python on an Oracle enterprise geodatabase and it worked by just changing out the .sde connection information that Jake mentioned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Aug 2016 13:49:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807008#M2963</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2016-08-10T13:49:46Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807009#M2964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. This appears to be exactly what I need right now. I do not know Python properly but when I open the Python window in ArcCatalog, under the 'Geoprocessing' menu, I add this code to the blank window (after the &amp;gt;&amp;gt;&amp;gt;) then changed the line at env.workspace to point to my gdb but then what? I hit enter (to execute) but nothing happens? How do I find if it did anything or see the results as a list (as shown above)? I think I just don't know how to run Python. Any tips please would be great! Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 00:30:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807009#M2964</guid>
      <dc:creator>ERIASGroup</dc:creator>
      <dc:date>2018-08-01T00:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export geodatabase data to excel</title>
      <link>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807010#M2965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answering my own question: Oh, put the cursor on the last line with three dots and again hit enter to execute. It then printed the results below the script. Great! Now to get it to Excel...&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2018 00:40:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/export-geodatabase-data-to-excel/m-p/807010#M2965</guid>
      <dc:creator>ERIASGroup</dc:creator>
      <dc:date>2018-08-01T00:40:53Z</dc:date>
    </item>
  </channel>
</rss>

