<?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: how to set up automate from shapefile to sde connection? Can it be command or other recommend? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464171#M26544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added it and there is no error message. I think it is working. &amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;arcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion("CityHall", &lt;BR /&gt; "Database Connections\SDE.sde", &lt;BR /&gt; "CityHall2")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is what I got result: &amp;nbsp;It seems working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; ================================ RESTART ================================&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you know what script is it? What do you recommend to set up python script that included whole feature class like drawing and tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 24 Aug 2017 15:15:47 GMT</pubDate>
    <dc:creator>AlexP_</dc:creator>
    <dc:date>2017-08-24T15:15:47Z</dc:date>
    <item>
      <title>how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464164#M26537</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;how to set up automate from shapefile to sde feature class connection? Can it be command or other recommend? Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 15:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464164#M26537</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-23T15:35:04Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464165#M26538</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use the feature class to feature class function via Python to automate converting a shapefile to an SDE feature class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/conversion-toolbox/feature-class-to-feature-class.htm"&gt;Feature Class to Feature Class—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 16:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464165#M26538</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2017-08-23T16:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464166#M26539</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I set it up and it is working however how do i set it up every time I make change from shapefile to SDE feature class? I don't see change on SDE feature from shapefile. &amp;nbsp; Am I missing something? &amp;nbsp;For example, weekly Monday import shapefile from SDE feature class.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 17:30:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464166#M26539</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-23T17:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464167#M26540</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It sounds like Windows Task Scheduler offers the functionality that you're seeking.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 22:05:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464167#M26540</guid>
      <dc:creator>SethLewis1</dc:creator>
      <dc:date>2017-08-23T22:05:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464168#M26541</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes. This is what I am looking for. However, python script turned out an error when it tried to run. It is working fine inside ArcMap with Pyrhon window (arcpy)? I put overwrite the outputs of geoprocessing operations. It is succeeded. However, when I tried to run on Python script itself, it gave me an error. How can I fix it? See this message below.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used script in ArcMap with Python Window and it succeeded:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion("CityHall", &lt;BR /&gt; "Database Connections\SDE.sde", &lt;BR /&gt; "CityHall2")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is used in python script I used the same from ArcMap and gave me an error when I tried to run it.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "N:\_Alexis\GIS ArcPy\TEST_CityHall2.py", line 5, in &amp;lt;module&amp;gt;&lt;BR /&gt; "CityHall2")&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\conversion.py", line 1790, in FeatureClassToFeatureClass&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: ERROR 000258: Output Database Connections\SDE.sde\CityHall2 already exists&lt;BR /&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:48:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464168#M26541</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-24T14:48:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464169#M26542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexis,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this line of code right after you import arcpy:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;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="line-numbers-rows"&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;That should tell your geoprocessing environment to overwrite outputs if they exist already.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Micah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:51:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464169#M26542</guid>
      <dc:creator>MicahBabinski</dc:creator>
      <dc:date>2017-08-24T14:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464170#M26543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's important to keep in mind that enterprise geodatabases contain tables, not files, and that some of the usual practices which are casual about deletion and re-population in file-based storage mechanisms would be better off being redesigned to be less brutal on table elimination and creation in databases. For example, if the shapefile schema isn't changing with each release, using Truncate Table and Append would be less burdensome on the database, and would have the side effect of not needing an explicit delete or initializing the environment to permit target overwrite.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 14:57:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464170#M26543</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-08-24T14:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464171#M26544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I added it and there is no error message. I think it is working. &amp;nbsp;Thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;arcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion("CityHall", &lt;BR /&gt; "Database Connections\SDE.sde", &lt;BR /&gt; "CityHall2")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;This is what I got result: &amp;nbsp;It seems working.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt; ================================ RESTART ================================&lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt; &lt;BR /&gt;&amp;gt;&amp;gt;&amp;gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Do you know what script is it? What do you recommend to set up python script that included whole feature class like drawing and tables?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 15:15:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464171#M26544</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-24T15:15:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464172#M26545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recent run again and it gave me an error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "N:\_Alexis\GIS ArcPy\TEST_CityHall2.py", line 6, in &amp;lt;module&amp;gt;&lt;BR /&gt; "CityHall2")&lt;BR /&gt; File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\conversion.py", line 1790, in FeatureClassToFeatureClass&lt;BR /&gt; raise e&lt;BR /&gt;ExecuteError: ERROR 000258: Output Database Connections\SDE.sde\CityHall2 already exists&lt;BR /&gt;Failed to execute (FeatureClassToFeatureClass).&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;I added it.&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px; font-size: 14px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro" style="background: #f6f6f6; border-width: 0px 0px 0px 2px; border-style: initial initial initial solid; border-color: initial initial initial #cccccc; font-size: 14px; margin: 10px 0px; padding: 10px 20px;"&gt;&lt;P style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;import arcpy&lt;BR /&gt;arcpy.env.overwriteOutput = True&lt;BR /&gt;arcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion("CityHall",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;"Database Connections\SDE.sde",&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;"CityHall2")&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 17:53:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464172#M26545</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-24T17:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to set up automate from shapefile to sde connection? Can it be command or other recommend?</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464173#M26546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I figured it out the correct python script. It is working now. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;# Name: FeatureClassToFeatureClass_Example2.py&lt;BR /&gt;# Description: Use FeatureClassToFeatureClass with an expression to create a subset&lt;BR /&gt;# of the original feature class. &lt;BR /&gt;&lt;BR /&gt;# Import system modules&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;arcpy.env.overwriteOutput = True&lt;/P&gt;&lt;P&gt;# Set environment settings&lt;BR /&gt;arcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"&lt;BR /&gt;&lt;BR /&gt;# Set local variables&lt;BR /&gt;inFeatures = "CityHall"&lt;BR /&gt;outLocation = "Database Connections\SDE.sde"&lt;BR /&gt;outFeatureClass = "CityHall2"&lt;BR /&gt;&lt;BR /&gt;# Execute FeatureClassToFeatureClass&lt;BR /&gt;arcpy.FeatureClassToFeatureClass_conversion(inFeatures, outLocation, &lt;BR /&gt; outFeatureClass)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 18:44:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-set-up-automate-from-shapefile-to-sde/m-p/464173#M26546</guid>
      <dc:creator>AlexP_</dc:creator>
      <dc:date>2017-08-24T18:44:13Z</dc:date>
    </item>
  </channel>
</rss>

