how to set up automate from shapefile to sde feature class connection? Can it be command or other recommend? Please advise.
Thank you.
Hi Alexis,
You can use the feature class to feature class function via Python to automate converting a shapefile to an SDE feature class.
Feature Class to Feature Class—Help | ArcGIS Desktop
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. Am I missing something? For example, weekly Monday import shapefile from SDE feature class.
Alexis,
It sounds like Windows Task Scheduler offers the functionality that you're seeking.
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.
I used script in ArcMap with Python Window and it succeeded:
import arcpyarcpy.env.workspace = "N:\_Alexis\GISData\Pubshp\CityHall.shp"arcpy.FeatureClassToFeatureClass_conversion("CityHall", "Database Connections\SDE.sde", "CityHall2")
This is used in python script I used the same from ArcMap and gave me an error when I tried to run it.
Traceback (most recent call last): File "N:\_Alexis\GIS ArcPy\TEST_CityHall2.py", line 5, in <module> "CityHall2") File "C:\Program Files (x86)\ArcGIS\Desktop10.3\ArcPy\arcpy\conversion.py", line 1790, in FeatureClassToFeatureClass raise eExecuteError: ERROR 000258: Output Database Connections\SDE.sde\CityHall2 already existsFailed to execute (FeatureClassToFeatureClass).
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.