<?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: Model Builder to Create Python Script for xls to csv Conversion in ModelBuilder Questions</title>
    <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858269#M577</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have ruled out just saving the excel file to a csv from within excel? It would actually take less steps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Feb 2019 21:07:33 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2019-02-12T21:07:33Z</dc:date>
    <item>
      <title>Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858268#M576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I am currently trying to create a python script within model builder to convert an xls file to csv.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I created one already using the "Excel to Table" tool which was successful. However, I tried to add data to the xls file and run the script again and it choked on the "csv already exists". I tried adding "Application.DisplayAlerts = False" to overwrite the csv already existing, but it still choked when I tried to run it again.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;My ultimate goal is to create a script I can set up in task scheduler to run on it's own everyday to convert an xls to csv, without using a script that requires macros to be enabled in the xls.&lt;/P&gt;&lt;P style="color: #242729; background-color: #f9f8f6; border: 0px; margin: 0px 0px 1em;"&gt;I am at the beginner beginner level when it comes to python script. Any help would be much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 20:32:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858268#M576</guid>
      <dc:creator>MagdalenaMartinez</dc:creator>
      <dc:date>2019-02-12T20:32:55Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858269#M577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have ruled out just saving the excel file to a csv from within excel? It would actually take less steps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 21:07:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858269#M577</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-12T21:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858270#M578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to have it set to convert itself each day so that a person does not have to manually do it everyday. Is there a way to set this within excel?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 21:12:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858270#M578</guid>
      <dc:creator>MagdalenaMartinez</dc:creator>
      <dc:date>2019-02-12T21:12:04Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858271#M579</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;using File Save As would be the excel route, but the person would have to know it.&lt;/P&gt;&lt;P&gt;Perhaps a picture&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image" height="371" src="https://community.esri.com/legacyfs/online/437185_csv_save.png" width="662" /&gt;&lt;/P&gt;&lt;P&gt;pick a folder, specify a filename and extension, then click on the dropdown and select CSV.&lt;/P&gt;&lt;P&gt;Not elegant, but beats the Excel to Table tool, then export it out to csv/text format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Feb 2019 23:08:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858271#M579</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-12T23:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858272#M580</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at this &lt;A href="https://www.arcgis.com/home/item.html?id=f3d91b8f852042e289e09a7ec8342431"&gt;tool box&lt;/A&gt;&amp;nbsp;on the ESRI Code Sharing website before you invest any more time on this problem...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 11:43:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858272#M580</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-02-14T11:43:59Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858273#M581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To overwrite outputs, set arcpy.env.overwriteOutput = True.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="color: #4d4d4d; border: 1px solid #dddddd; font-size: 0.875em; margin-bottom: 1.5em;"&gt;&lt;TBODY&gt;&lt;TR style="border-bottom: 1px solid #dddddd;"&gt;&lt;TD style="border-left: 1px solid #dddddd; border-right: 1px solid #dddddd; padding: 12px;"&gt;overwriteOutput&lt;DIV class=""&gt;(Read and Write)&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="border-left: 1px solid #dddddd; border-right: 1px solid #dddddd; padding: 12px;"&gt;&lt;P style="font-size: 0.875rem; margin-top: 0em;"&gt;Controls whether tools will automatically overwrite any existing output when run. When set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;True&lt;/SPAN&gt;, tools will execute and overwrite the output dataset. When set to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;False&lt;/SPAN&gt;, existing outputs will not be overwritten, and the tool will return an error.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="border-left: 1px solid #dddddd; border-right: 1px solid #dddddd; padding: 12px;"&gt;Boolean&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm" title="http://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-classes/env.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;env—Help | ArcGIS Desktop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do this using &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/excel-to-table.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Excel To Table&lt;/A&gt; to convert the Excel sheet to a table, then &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/table-to-table.htm" rel="nofollow noopener noreferrer" target="_blank"&gt;Table To Table&lt;/A&gt; to convert the table to a CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my testing the output CSV always had an OID field added to it, so I used the &lt;A href="https://pandas.pydata.org/pandas-docs/stable/index.html" rel="nofollow noopener noreferrer" target="_blank"&gt;pandas&lt;/A&gt; library to drop the OID field.&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
&lt;SPAN class="keyword token"&gt;import&lt;/SPAN&gt; pandas &lt;SPAN class="keyword token"&gt;as&lt;/SPAN&gt; pd

arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;env&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;overwriteOutput &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Input Excel file&lt;/SPAN&gt;
excel_file &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\Username\Desktop\test_book.xlsx"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Intermediate converted table&lt;/SPAN&gt;
interm_table &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\Username\Documents\ArcGIS\Default.gdb\test_book"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Convert Excel file to table&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;ExcelToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;excel_file&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; interm_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"Sheet1"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Directory and name for the output CSV&lt;/SPAN&gt;
output_dir &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; r&lt;SPAN class="string token"&gt;"C:\Users\Username\Desktop"&lt;/SPAN&gt;
csv_name &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"test_book.csv"&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Convert intermediate table to CSV&lt;/SPAN&gt;
arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;TableToTable_conversion&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;interm_table&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; output_dir&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; csv_name&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Set full path of the CSV&lt;/SPAN&gt;
csv_fullpath &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; output_dir &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"\\"&lt;/SPAN&gt; &lt;SPAN class="operator token"&gt;+&lt;/SPAN&gt; csv_name

&lt;SPAN class="comment token"&gt;# Read CSV into pandas DataFrame&lt;/SPAN&gt;
df &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; pd&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;read_csv&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;csv_fullpath&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Drop OID column&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;drop&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'OID'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; axis&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;1&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; inplace&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;True&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# Write DataFrame to the same CSV as the input&lt;/SPAN&gt;
df&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;to_csv&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;csv_fullpath&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; index&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="token boolean"&gt;False&lt;/SPAN&gt;&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;/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;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;/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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html" title="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.read_csv.html" rel="nofollow noopener noreferrer" target="_blank"&gt;pandas.read_csv — pandas 0.24.1 documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html" title="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.drop.html" rel="nofollow noopener noreferrer" target="_blank"&gt;pandas.DataFrame.drop — pandas 0.24.1 documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html" title="https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.to_csv.html" rel="nofollow noopener noreferrer" target="_blank"&gt;pandas.DataFrame.to_csv — pandas 0.24.1 documentation&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858273#M581</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2021-12-12T10:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858274#M582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/4563"&gt;Duncan Hornby&lt;/A&gt;‌ Can this toolbox and the four tools be used in ArcGIS Pr0 2.3?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 20:20:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858274#M582</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-14T20:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858275#M583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not sure , never tried. If they don't I can't imagine it would take too much editing to get them working?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:03:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858275#M583</guid>
      <dc:creator>DuncanHornby</dc:creator>
      <dc:date>2019-02-14T21:03:56Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858276#M584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll download and check it out; I didn't realize those tools were written so long ago; a couple of them are now bundled with the core release.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:25:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858276#M584</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-14T21:25:56Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858277#M585</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/blogs/dan_patterson/2018/02/12/table-tools-a-set-of-tools-for-working-with-tabular-data"&gt;/blogs/dan_patterson/2018/02/12/table-tools-a-set-of-tools-for-working-with-tabular-data&lt;/A&gt; description and tools at&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.arcgis.com/home/item.html?id=90d9ca933e8c4b96bf341a20ae1f2514" title="https://www.arcgis.com/home/item.html?id=90d9ca933e8c4b96bf341a20ae1f2514"&gt;https://www.arcgis.com/home/item.html?id=90d9ca933e8c4b96bf341a20ae1f2514&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858277#M585</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-02-14T21:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858278#M586</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Beauty!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 21:39:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858278#M586</guid>
      <dc:creator>JoeBorgione</dc:creator>
      <dc:date>2019-02-14T21:39:52Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858279#M587</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OP asked about Model Builder. I think pandas is a little more than they were interested in... did you try simply modifying the field map on the Table to Table tool to drop the OID? Seems like that would be less trouble (especially if using Model Builder).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 09:01:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858279#M587</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-02-21T09:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858280#M588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, I tried using&amp;nbsp;FieldMappings and also tried using table view FieldInfo. With field mapping, the ObjectID field didn't seem to be accessible using the fields property of the FieldMappings object. With FieldInfo, even if I hid the ObjectID field it still showed up in the output CSV. Hiding fields worked with all the other fields, just not ObjectID.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Feb 2019 20:04:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/858280#M588</guid>
      <dc:creator>StephenM</dc:creator>
      <dc:date>2019-02-21T20:04:08Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/1012871#M589</link>
      <description>&lt;P&gt;Just wanted to say thank you for posting this solution as I was able to use some of the code to help with a similar process of dropping the "OID" field from a CSV file that was exported from the "Table to Table" tool.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 13:33:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/1012871#M589</guid>
      <dc:creator>MichaelBruening</dc:creator>
      <dc:date>2020-12-30T13:33:45Z</dc:date>
    </item>
    <item>
      <title>Re: Model Builder to Create Python Script for xls to csv Conversion</title>
      <link>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/1601941#M4069</link>
      <description>&lt;P&gt;Thank you for this resource! The script worked in my case.&lt;/P&gt;&lt;P&gt;But I also tried to export to CSV straight from Model Builder and that seems to be working (I have ArcGIS Pro version 3.3.1).&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can use Export Table (aka Table to Table) geoprocessing tool within your Model Builder. Enter your Input File Path, and &lt;STRONG&gt;for the Output Table&lt;/STRONG&gt;, &lt;STRONG&gt;specify the file name or file path ends in .csv (&lt;/STRONG&gt;filepath.csv).&amp;nbsp;&lt;SPAN&gt;Finally drop any field using Field Map and schedule your model to run on a needed basis.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 17:58:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/modelbuilder-questions/model-builder-to-create-python-script-for-xls-to/m-p/1601941#M4069</guid>
      <dc:creator>MesfinLenth17</dc:creator>
      <dc:date>2025-04-02T17:58:10Z</dc:date>
    </item>
  </channel>
</rss>

