Are you trying to hit the attribute table directly? You can make life a lot easier on yourself if you use a Versioned View.You can create a view that pulls the data for the system tables that ArcSDE uses to keep track of changes to a view that you can then use. If you do this, you won't have to compress your data after every edit.http://resources.arcgis.com/en/help/main/10.1/index.html#/Creating_versioned_views_from_ArcGIS_Desktop/006z000000vr000000/
Robert, Thank you again, for available to reply. I got the below Python code. But It has this error message when executing "Error 000837: The workspace is not the correct workspace type. Failed to execute<Compress>". The SDE connection file is from the folder that ArcCatalog uses to connect. See attached screen copy of connection in arcCatalog. I am stuck here 😞 try: # Compress the database print "Begining Compress..." + "\n" gp.toolbox = "management" # For this script to work it will need the full path to the .sde connection file. gp.compress(" C:\Documents and Settings\Administrator\Application Data\ESRI\Desktop10.1\ArcCatalog\Connection to chester_sqlexpress.sde") print gp.GetMessages() + "\n" output.write(gp.GetMessages()+ "\n")
"Database Connections\\Connection to chester_sqlexpress"
Without being able to dive in and test, I believe at least one of the issues is here. I think that should be something like "Database Connections\\Connection to chester_sqlexpress" .I often start a model in ArcMap and add the compress tool, then browse to the dataset, export to python script and that will give you the proper synatax for the path.Just a thought, not sure if it helps,R_Also, not sure about compress, but arcpy.Compact_management runs orders of magnitude faster than the gp.Compact_management. Might get better perfomance if you convert it all to arcpy.
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.