<?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: TableToExcel - Loop in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751407#M58049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if you are running into this, but if converting to an in_memory dataset, keep this bug in mind:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: medium;"&gt;Thank you for contacting Esri and providing additional information to escalate "BUG-000093491: The field name of the in-memory table created using the Excel To Table tool gets truncated if the field name exceeds ten characters when listing it using Python. The field name is not truncated when opening the in-memory table in ArcMap."&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;R_&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jun 2017 20:48:03 GMT</pubDate>
    <dc:creator>RhettZufelt</dc:creator>
    <dc:date>2017-06-15T20:48:03Z</dc:date>
    <item>
      <title>TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751386#M58028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi GeoNet and thanks in advance. I'm new to Python.&amp;nbsp;&lt;/P&gt;&lt;P&gt;My goal is to write a script that converts all the shapefiles in a gdb into a csv (although I will take an Excel spreadsheet, too). &amp;nbsp;I plan to convert the final program into a script tool with parameters for which gdb to access and where to save the spreadsheets. I can get a single shapefile to convert into an Excel spreadsheet. I would like to loop through the gdb and convert each shapefile to a unique csv (for this case, let's assume that the gdb contains only shapefiles).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My code fails and I have received a couple of different error messages depending on the variable I use for the in_table argument (hope I have that right). &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suspect that I am not correctly naming my in_table and out_xls variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's a screen shot of my code. Sorry for the small size, not sure how to enlarge the text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="tabletoexcel loop" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/356932_TableToExcel.PNG" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:24:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751386#M58028</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-13T20:24:55Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751387#M58029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;P&gt;It looks like you are writing into a File Geodatabase directory, which isn't recommended.&lt;/P&gt;&lt;P&gt;It also looks like you want to push the data to OneDrive.&lt;/P&gt;&lt;P&gt;Data Interoperability extension can do this all in one hit with a Spatial ETL tool, and the tool is scriptable with Python like any geoprocessing tool.&amp;nbsp; You do of course need the extension and there is a learning curve, but we're here to help.&amp;nbsp; Web as a filesystem is a growing use case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:45:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751387#M58029</guid>
      <dc:creator>BruceHarold</dc:creator>
      <dc:date>2017-06-13T20:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751388#M58030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Table to Excel needs a table as input. You're giving it a feature class. You'll&amp;nbsp;probably need to start with &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/copy-rows.htm"&gt;copy rows&lt;/A&gt; to an &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/analyze/modelbuilder/the-in-memory-workspace.htm"&gt;in_memory workspace&lt;/A&gt;. That gives you just a geodatabase table of the feature class. Then you can try using that as the &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;Input_Table&lt;/SPAN&gt; parameter for Table to Excel. If that doesn't work, try &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/data-management-toolbox/make-table-view.htm"&gt;make table view&lt;/A&gt; on the table first&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:48:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751388#M58030</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-06-13T20:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751389#M58031</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Doug,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A few things, first this should be a question not a discussion if you are able to fix it, if not its no big deal.&amp;nbsp; Second if you want to post code in the future you can use the advanced editor to post code and select the language (See &lt;A href="https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=a87e3927-580f-456c-be47-430463fb88b3&amp;amp;searchIndex=2"&gt;https://community.esri.com/people/curtvprice/blog/2014/09/25/posting-code-blocks-in-the-new-geonet?sr=search&amp;amp;searchId=a87e3927-580f-456c-be47-430463fb88b3&amp;amp;searchIndex=2&lt;/A&gt;‌ for examples on how to do so.).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now in line 26 you are using the variable fc and it isn't declared til the loop in line 30, which probably causing it to crash at the moment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you moved it to line 31 and put the current line 31 after it, it would likely work.&amp;nbsp; I would run the program without the Table to Excel Conversion first(comment it out)&amp;nbsp;while printing the variable fc and out_xls to make sure they are what you are expecting them to be, then run it with the conversion.&amp;nbsp; Also if you are receiving errors its good to post what they are since they can help other posters identify potential problems with your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I would recommend using the os module for working with filepaths(see os.path.join), its cleaner than using string backslashes and concatenating filenames together.&amp;nbsp; There are examples in the List Feature Class help as well as python help pages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm"&gt;http://pro.arcgis.com/en/pro-app/arcpy/functions/listfeatureclasses.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/os.path.html"&gt;https://docs.python.org/2/library/os.path.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.python.org/2/library/os.html"&gt;https://docs.python.org/2/library/os.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:53:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751389#M58031</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2017-06-13T20:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751390#M58032</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Also I would recommend using the os module for working with filepaths(see os.path.join), its cleaner than using string backslashes and concatenating filenames together.&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I agree. Dan Patterson wrote an insightful blog post on the topic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2016/08/14/filenames-and-file-paths-in-python"&gt;/blogs/dan_patterson/2016/08/14/filenames-and-file-paths-in-python&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 20:58:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751390#M58032</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-06-13T20:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751391#M58033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For code formatting, it is best to past it in so it can be retrieved... &lt;A _jive_internal="true" href="https://community.esri.com/blogs/dan_patterson/2016/08/14/script-formatting"&gt;Code Formatting the Basics ++&lt;/A&gt; if people want to test&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jun 2017 23:10:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751391#M58033</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-06-13T23:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751392#M58034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;A few things, first this should be a question not a discussion if you are able to fix it,&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;done...I switched it to a question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 00:07:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751392#M58034</guid>
      <dc:creator>RebeccaStrauch__GISP</dc:creator>
      <dc:date>2017-06-14T00:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751393#M58035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try this code, taking into account that Excel files are limited to 65,535 (XLS) or&amp;nbsp;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;1,048,576 (XLSX)&amp;nbsp;&lt;/SPAN&gt;rows:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; arcpy
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;workspace &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;'D:\MyfolderOrGDB'&lt;/SPAN&gt;
fcs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ListFeatureClasses&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fc &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; fcs&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; 
&amp;nbsp; rows &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; int&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;GetCount_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;getOutput&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;0&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp; &lt;SPAN class="keyword token"&gt;if&lt;/SPAN&gt; rows &lt;SPAN class="operator token"&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class="number token"&gt;65535&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; desc &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; xlsfile &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'{}{}{}'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;format&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'D:/OutputFolder/'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; desc&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;name&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'.xls'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToExcel_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fc&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;xlsfile&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:54:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751393#M58035</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2021-12-12T07:54:13Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751394#M58036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works on Feature Classes too. The input table does not necessarily have to be a table object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 08:51:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751394#M58036</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-06-14T08:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751395#M58037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANKS ALL. I will review each of the replies in detail and try each suggestion.&lt;/P&gt;&lt;P&gt;Doug&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 14:47:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751395#M58037</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-14T14:47:47Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751396#M58038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent, thanks for the info!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 14:50:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751396#M58038</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-06-14T14:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751397#M58039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks FC&lt;/P&gt;&lt;P&gt;I will try your code. It looks like I might need to make some changes for it to work on my data.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&amp;nbsp;Line 2 - Do I need to change my workspace?&lt;/LI&gt;&lt;LI&gt;Line 5 - &amp;nbsp;What is getOutput? &amp;nbsp;Do I need to create a script tool from this code and add a parameter? If so, is getOutput a folder where I store the results?&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:13:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751397#M58039</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-14T20:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751398#M58040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Bruce.&lt;/P&gt;&lt;P&gt;I read about Spatial ETL. It looks like I may not have the extension. In my toolbox under Data Interoperability Tools I see quick import and export tools. &amp;nbsp;When I select Customize - Extensions, Spatial ETL is not listed. I have access to about 8 other extensions on my current student subscription to 10.3 desktop&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With respect to OneDrive - it is a pain. &amp;nbsp;At the moment all my work is stored on OneDrive. I believe it is set as the default and I left it this way while a student to ensure backups of my work were saved when I was working on my personal computer. &amp;nbsp;I think I could save all my data to my laptop hard drive rather than OneDrive. If I did this, would you recommend I back up everything to an external hard drive or to a service?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:28:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751398#M58040</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-14T20:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751399#M58041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, based on FC's response that TableToExcel works on feature classes, should I still implement your suggestions and copy rows? Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:29:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751399#M58041</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-14T20:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751400#M58042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the comments, Ian. I the future I will post to questions with questions.&lt;/P&gt;&lt;P&gt;As for the code edits (lines 26/31) I will try this.&lt;/P&gt;&lt;P&gt;I understand the advantage of os.path.join(). I will read the links you shared to learn more on how to use the OS module.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 20:33:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751400#M58042</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2017-06-14T20:33:25Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751401#M58043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just tested and &lt;A href="https://community.esri.com/migrated-users/20360"&gt;FC Basson&lt;/A&gt;‌ is correct, Table To Excel does work with a feature class. That means your code should work as-is. However, I think &lt;A href="https://community.esri.com/migrated-users/42743"&gt;Ian Murray&lt;/A&gt;&amp;nbsp;is correct about&amp;nbsp;line 26 in your code so read through his comment carefully.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you get stuck, try going back to square one and run the geoprocessing tool manually in ArcCatalog to make sure you're using the correct inputs. You can &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/main/understanding-tool-syntax.htm"&gt;copy the python snippet&lt;/A&gt; from a completed process in the geoprocessing results as a starting point.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Jun 2017 21:53:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751401#M58043</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2017-06-14T21:53:40Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751402#M58044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;What is getOutput?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;.getOutput is a method called on a result object. This is the most direct way to&amp;nbsp;get the result value from GetCount (or any other tool that returns a result.) The result is a string, so that's why he wrapped it with int() -- to convert '45' to 45 for a count of 45 rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 04:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751402#M58044</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-15T04:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751403#M58045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Excel files are limited to 65535 rows:&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is true for .xls format, but not .xlsx.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/understanding-how-to-use-microsoft-excel-files-in-arcgis.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/tables/understanding-how-to-use-microsoft-excel-files-in-arcgis.htm"&gt;Understanding how to use Microsoft Excel files in ArcGIS—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 04:33:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751403#M58045</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-06-15T04:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751404#M58046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes just change the workspace and output folder on your side.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jun 2017 05:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751404#M58046</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-06-15T05:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: TableToExcel - Loop</title>
      <link>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751405#M58047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks FC.&lt;/P&gt;&lt;P&gt;Question:&lt;/P&gt;&lt;P&gt;This part of your code (below) looks like a parameter in a script tool. Do I need to create a script tool and designate this as a parameter? If so, I think it should be an output. What data type is it considered. &amp;nbsp;Thanks again.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;.&lt;/SPAN&gt;getOutput&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;(&lt;/SPAN&gt;&lt;SPAN class="" style="color: #990000; border: 0px; font-weight: inherit;"&gt;0&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit;"&gt;)

&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 07:54:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/tabletoexcel-loop/m-p/751405#M58047</guid>
      <dc:creator>DougHaller1</dc:creator>
      <dc:date>2021-12-12T07:54:16Z</dc:date>
    </item>
  </channel>
</rss>

