<?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 layers of a gdb as excel table in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027724#M60016</link>
    <description>&lt;P&gt;spaces in the path.... isn't a path if it is the first character especially&lt;/P&gt;&lt;P&gt;raw encoding won't help for that either&lt;/P&gt;</description>
    <pubDate>Wed, 17 Feb 2021 18:07:26 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-02-17T18:07:26Z</dc:date>
    <item>
      <title>Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027434#M59993</link>
      <description>&lt;P&gt;Hello everybody,&lt;/P&gt;&lt;P&gt;I'm new in this world of arcpy and I would like poder export all of layer of a gbd to an excel format, I tried with several this foro's scripts but I can't get the result, this is my script actual but not funcionate.&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;from arcpy import env&lt;/P&gt;&lt;P&gt;env.workspace = r" C:\Users\LAP77\Desktop\JR\Veg_Hidro_Final.gdb"&lt;/P&gt;&lt;P&gt;output_folder = of = r" C:\Users\LAP77\Desktop\JR\Veg_Hidro_Final\Excel"&lt;/P&gt;&lt;P&gt;for fc in arcpy.ListFeatureClasses("*"):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; fc_name= of+ "\\"+fc+".xls"&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; print(fc_name)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.TableToExcel_conversion(fc,fc_name, "NAME", "CODE")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 01:06:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027434#M59993</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T01:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027440#M59994</link>
      <description>&lt;P&gt;What error are you getting when you run the script?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 01:15:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027440#M59994</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-02-17T01:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027450#M59995</link>
      <description>&lt;P&gt;&lt;SPAN&gt;output_folder&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;fc_name= &lt;STRONG&gt;of&lt;/STRONG&gt;+ "\\"+fc+".xls"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;is "&lt;STRONG&gt;of"&lt;/STRONG&gt; short for output_folder ?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 02:24:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027450#M59995</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T02:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027452#M59996</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Yes the OP has assigned the variable&amp;nbsp;like this&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;output_folder = &lt;STRONG&gt;of&lt;/STRONG&gt; =&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;r" C:\Users\LAP77\Desktop\JR\Veg_Hidro_Final\Excel"&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 02:31:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027452#M59996</guid>
      <dc:creator>DavinWalker2</dc:creator>
      <dc:date>2021-02-17T02:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027457#M59998</link>
      <description>&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-excel.htm" target="_blank" rel="noopener"&gt;Table To Excel (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;make sure you specify whether you want an xls or xlsx as well.&amp;nbsp; There are limitations with xls format&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Converts a table to a Microsoft Excel file (&lt;SPAN class="usertext"&gt;.xls&lt;/SPAN&gt;&amp;nbsp;or&amp;nbsp;&lt;SPAN class="usertext"&gt;.xlsx&lt;/SPAN&gt;).&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In any event, throw in a print statement to make sure you get a valid output filename when you are testing.&lt;/P&gt;&lt;P&gt;And on a different note.&amp;nbsp; you have a space at the beginning of your paths.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;os.path.isdir(" C:\\Temp")  # --- space preceeding path
False

os.path.isdir("C:\\Temp")   # --- no space
True&lt;/LI-CODE&gt;&lt;P&gt;unless it is a code formatting issue... for future reference&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/code-formatting-the-community-version/ba-p/1007633" target="_blank"&gt;Code formatting ... the Community Version - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 02:52:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027457#M59998</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T02:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027459#M59999</link>
      <description>&lt;P&gt;I just caught that you wanted excel format so I changed the example code.&amp;nbsp; TableToExcel takes a table view, which is missing from your code.&lt;/P&gt;&lt;P&gt;updated per Blake's note on describe.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import arcpy
from arcpy import env

env.workspace = r" C:\Users\LAP77\Desktop\JR\Veg_Hidro_Final.gdb"
output_folder = r" C:\Users\LAP77\Desktop\JR\Veg_Hidro_Final\Excel"

for fc in arcpy.ListFeatureClasses("*"):
    print(fc)
    out_xls = os.path.join(output_folder, fr'{fc}.xls')
    fc_table_view = arcpy.MakeTableView_management(fc, "tview")
    arcpy.TableToExcel_conversion(fc_table_view, out_xls)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:34:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027459#M59999</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T14:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027580#M60001</link>
      <description>&lt;P&gt;Just a couple small notes on&amp;nbsp;&lt;FONT face="courier new,courier"&gt;ListFeatureClasses()&lt;/FONT&gt;.&amp;nbsp; It returns the feature class names as strings in a list so you don't need to &lt;FONT face="courier new,courier"&gt;Describe()&lt;/FONT&gt; them. You can also exclude the&amp;nbsp;wild_card parameter as the default will return everything.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 14:19:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027580#M60001</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2021-02-17T14:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027635#M60003</link>
      <description>&lt;P&gt;Thanks for your time!&lt;/P&gt;&lt;P&gt;This is the error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; import arcpy
... from arcpy import env
... env.workspace = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Veg_Hidro_Final.gdb"
... output_folder = of = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Excel"
... for fc in arcpy.ListFeatureClasses("*"):
...         fc_name= of+ "\\"+fc+".xls"	
...         print(fc_name)
...         arcpy.TableToExcel_conversion(fc,fc_name, "NAME", "CODE")
...         
 C:\Users\LAP77\JR\Veg_Hidro_Final\Excel\Veg_Hidro_Final.xls
Runtime error  Traceback (most recent call last):   File "&amp;lt;string&amp;gt;", line 8, in &amp;lt;module&amp;gt;   File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\conversion.py", line 81, in TableToExcel     raise e ExecuteError: Failed to execute. Parameters are not valid. ERROR 000732: Input Table: Dataset Veg_Hidro_Final does not exist or is not supported Failed to execute (TableToExcel).  &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:15:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027635#M60003</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T16:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027644#M60004</link>
      <description>&lt;P&gt;try printing the "fc" name as well to make sure it exists and that it is a geodatabase table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You just printed the output xls name.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:26:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027644#M60004</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T16:26:17Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027645#M60005</link>
      <description>&lt;P&gt;Thanks for your time, It's not a&amp;nbsp;&lt;SPAN&gt;code formatting issue because when I print the ListFeatureClasses is all okay, but thank you very much for the Code Formatting for this post!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:27:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027645#M60005</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T16:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027652#M60006</link>
      <description>&lt;P&gt;TableToExcel takes a Table View as an input.&amp;nbsp; You need to make a table view from your fc and pass that into the function.&amp;nbsp; See my post below for the full code.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;fc_table_view = arcpy.MakeTableView_management(fc, "tview")
arcpy.TableToExcel_conversion(fc_table_view, out_xls)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:31:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027652#M60006</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T16:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027673#M60007</link>
      <description>&lt;P&gt;Thanks for yout time! I tried with this script but I get the following error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Parsing error SyntaxError: invalid syntax (line 10)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:46:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027673#M60007</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T16:46:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027677#M60008</link>
      <description>&lt;P&gt;ok could a difference between python 2 and 3. Change it to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;out_xls = os.path.join(output_folder, r'{}.xls'.format(fc))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 16:54:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027677#M60008</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T16:54:20Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027693#M60009</link>
      <description>&lt;P&gt;sorry for the inconvenience :(, but it throws me error:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; import os
... import arcpy
... from arcpy import env
... 
... env.workspace = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Veg_Hidro_Final.gdb"
... output_folder = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Excel"
... 
... for fc in arcpy.ListFeatureClasses("*"):
...     print(fc)
...     out_xls = os.path.join(output_folder, r'{}.xls'.format(fc))
...     print(out_xls)
...     fc_table_view = arcpy.MakeTableView_management(fc,"tview")
...     arcpy.TableToExcel_conversion(fc_table_view, out_xls)
...     
 C:\Users\LAP77\JR\Veg_Hidro_Final\Excel\Veg_Hidro_Final.xls
Runtime error  Traceback (most recent call last):   File "&amp;lt;string&amp;gt;", line 12, in &amp;lt;module&amp;gt;   File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 6966, in MakeTableView     raise e ExecuteError: ERROR 000732: Input Table: Dataset Veg_Hidro_Final does not exist or is not supported  &lt;/LI-CODE&gt;&lt;P&gt;these are the feature classes in the gdb:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelRodriguez95_0-1613582247530.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6235iA5B511BB5520C14E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelRodriguez95_0-1613582247530.png" alt="JoelRodriguez95_0-1613582247530.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;and this a part of table's Veg_Hidro_Final&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="JoelRodriguez95_2-1613582443324.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6237i1410E50EA0331E36/image-size/medium?v=v2&amp;amp;px=400" role="button" title="JoelRodriguez95_2-1613582443324.png" alt="JoelRodriguez95_2-1613582443324.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:20:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027693#M60009</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027700#M60010</link>
      <description>&lt;P&gt;Try with the full path to the fc:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;...
out_xls = os.path.join(output_folder, r'{}.xls'.format(fc))
print(out_xls)
fc_path = os.path.join(env.workspace, fc)
fc_table_view = arcpy.MakeTableView_management(fc_path, "tview")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:33:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027700#M60010</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T17:33:40Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027702#M60011</link>
      <description>&lt;P&gt;print the featureclass name and the out_xls name ... ie print(fc, out_xls)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027702#M60011</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-17T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027714#M60012</link>
      <description>&lt;P&gt;nothing &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;&amp;gt;&amp;gt;&amp;gt; import os
... import arcpy
... from arcpy import env
... 
... env.workspace = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Veg_Hidro_Final.gdb"
... output_folder = r" C:\Users\LAP77\JR\Veg_Hidro_Final\Excel"
... 
... for fc in arcpy.ListFeatureClasses("*"):
...     print("1::",fc)
...     out_xls = os.path.join(output_folder, r'{}.xls'.format(fc))
...     print("2::",out_xls)
...     print("3::",fc, out_xls)
...     fc_path = os.path.join(env.workspace, fc)
...     fc_table_view = arcpy.MakeTableView_management(fc_path, "tview")
...     arcpy.TableToExcel_conversion(fc_table_view, out_xls)
...     
('1::', u'Veg_Hidro_Final')
('2::', ' C:\\Users\\LAP77\\JR\\Veg_Hidro_Final\\Excel\\Veg_Hidro_Final.xls')
('3::', u'Veg_Hidro_Final', ' C:\\Users\\LAP77\\JR\\Veg_Hidro_Final\\Excel\\Veg_Hidro_Final.xls')
Runtime error  Traceback (most recent call last):   File "&amp;lt;string&amp;gt;", line 15, in &amp;lt;module&amp;gt;   File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\conversion.py", line 81, in TableToExcel     raise e ExecuteError:  Traceback (most recent call last):   File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Scripts\TableToExcel.py", line 222, in &amp;lt;module&amp;gt;     arcpy.GetParameter(3))   File "c:\program files (x86)\arcgis\desktop10.3\ArcToolbox\Scripts\TableToExcel.py", line 216, in table_to_excel     workbook.save(output)   File "C:\Python27\ArcGIS10.3\lib\site-packages\xlwt\Workbook.py", line 662, in save     doc.save(filename, self.get_biff_data())   File "C:\Python27\ArcGIS10.3\lib\site-packages\xlwt\CompoundDoc.py", line 261, in save     f = open(file_name_or_filelike_obj, 'w+b') IOError: [Errno 22] invalid mode ('w+b') or filename: u' C:\\Users\\LAP77\\JR\\Veg_Hidro_Final\\Excel\\Veg_Hidro_Final.xls'  Failed to execute (TableToExcel).  &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and when I use the script again, this is the error.&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Runtime error  Traceback (most recent call last):   File "&amp;lt;string&amp;gt;", line 14, in &amp;lt;module&amp;gt;   File "c:\program files (x86)\arcgis\desktop10.3\arcpy\arcpy\management.py", line 6966, in MakeTableView     raise e ExecuteError: ERROR 000725: Table Name: Dataset tview already exists.  &lt;/LI-CODE&gt;</description>
      <pubDate>Wed, 17 Feb 2021 17:57:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027714#M60012</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T17:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027717#M60013</link>
      <description>&lt;P&gt;I did it in my last answer, thanks for your time&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:00:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027717#M60013</guid>
      <dc:creator>JoelRodriguez95</dc:creator>
      <dc:date>2021-02-17T18:00:05Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027720#M60014</link>
      <description>&lt;P&gt;Ok, Like Dan said earlier you have spaces in your paths. r" C:...".&lt;/P&gt;&lt;P&gt;This error is saying it cant find &amp;lt;space&amp;gt;C:/... in your output.&amp;nbsp; remove the spaces and try again.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:02:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027720#M60014</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T18:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: Export layers of a gdb as excel table</title>
      <link>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027722#M60015</link>
      <description>&lt;P&gt;for the already exists error, you can del it at the end of the iteration or you can add&lt;/P&gt;&lt;LI-CODE lang="python"&gt;env.overwriteOutput = True&lt;/LI-CODE&gt;&lt;P&gt;under the imports so it overwrites the outputs.&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2021 18:06:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/export-layers-of-a-gdb-as-excel-table/m-p/1027722#M60015</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2021-02-17T18:06:28Z</dc:date>
    </item>
  </channel>
</rss>

