<?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 Table to Table Function in Python in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207894#M15988</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am going to run a weekly script that updates POIs for some Garmin units my group has.&amp;nbsp; My output is a .dbf that will be converted to .csv and then loaded.&amp;nbsp; My final operation of the model/script is Table to Table.&amp;nbsp; I need to have this .dbf overwritten each instance it is run.&amp;nbsp; My geoprocessing overwrite function is turned on and runs fine in ModelBuilder, but it will not overwrite the .dbf from the script and gives me the Error 000258 stating the table already exists.&amp;nbsp; I wasn't sure if I was missing something or there is some snippet of code which will allow the .dbf to be forcibly overwritten.&amp;nbsp; I know I could just write the first part of the model/script to delete the existing one before it runs again, but I was hoping not to do so.&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.TableToTable_conversion&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2011 12:52:47 GMT</pubDate>
    <dc:creator>StevenRehbaum</dc:creator>
    <dc:date>2011-04-08T12:52:47Z</dc:date>
    <item>
      <title>Table to Table Function in Python</title>
      <link>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207894#M15988</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am going to run a weekly script that updates POIs for some Garmin units my group has.&amp;nbsp; My output is a .dbf that will be converted to .csv and then loaded.&amp;nbsp; My final operation of the model/script is Table to Table.&amp;nbsp; I need to have this .dbf overwritten each instance it is run.&amp;nbsp; My geoprocessing overwrite function is turned on and runs fine in ModelBuilder, but it will not overwrite the .dbf from the script and gives me the Error 000258 stating the table already exists.&amp;nbsp; I wasn't sure if I was missing something or there is some snippet of code which will allow the .dbf to be forcibly overwritten.&amp;nbsp; I know I could just write the first part of the model/script to delete the existing one before it runs again, but I was hoping not to do so.&amp;nbsp; Any help is greatly appreciated.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;arcpy.TableToTable_conversion&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2011 12:52:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207894#M15988</guid>
      <dc:creator>StevenRehbaum</dc:creator>
      <dc:date>2011-04-08T12:52:47Z</dc:date>
    </item>
    <item>
      <title>Re: Table to Table Function in Python</title>
      <link>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207895#M15989</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I usually set the OverWriteOutput to 1 at the beginning of my scripts.&amp;nbsp; I'm using 9.3, so I'm not sure how this translates over to 10 &amp;amp; arcpy...&amp;nbsp; But it's probably similar.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Set the Geoprocessing environment...
gp.OverWriteOutput = 1 #Overwrite set to true&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207895#M15989</guid>
      <dc:creator>ZoeZaloudek</dc:creator>
      <dc:date>2021-12-11T10:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Table to Table Function in Python</title>
      <link>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207896#M15990</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I usually set the OverWriteOutput to 1 at the beginning of my scripts.&amp;nbsp; I'm using 9.3, so I'm not sure how this translates over to 10 &amp;amp; arcpy...&amp;nbsp; But it's probably similar.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Set the Geoprocessing environment...
gp.OverWriteOutput = 1 #Overwrite set to true&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I knew it was something like that! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; Worked perfectly.&amp;nbsp; Many thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:16:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/table-to-table-function-in-python/m-p/207896#M15990</guid>
      <dc:creator>StevenRehbaum</dc:creator>
      <dc:date>2021-12-11T10:16:30Z</dc:date>
    </item>
  </channel>
</rss>

