Hot answers tagged

4

This can be easily done with ArcREST. from arcrest.manageorg import Administration from arcrest import AGOLTokenSecurityHandler from arcrest.agol import FeatureService from arcrest.common.filters import LayerDefinitionFilter def download_features(fs_url,where_clause,out_path): '''downloads a hosted service features into a feature class''' ...


3

I came across this Q&A which helped me to solve why I was unable to use a where clause on an ArcPy search cursor which could restrict the cursor to just those records which contained an underscore (_) in a particular text field. By the time I found it I had already developed a code snippet to illustrate the problem so, rather than waste that effort, I ...


2

Is using direct connect an option? This is preferred as SDE services (Three Tier connections) are depreciated. If must use a three tier connection your SDE administrator will be able to tell you the service name, 5150 and 5151 are the most common ones I have come across (they correspond to the port number).


1

Have you tried using the Version Differences tool in ArcMap, see http://desktop.arcgis.com/en/arcmap/latest/extensions/data-reviewer/comparing-geodatabase-versions.htm. This gives you information on the outstanding Adds, Deletes, and Modifies between versions. Granted, you would need to do this on a version by version basis, but this may give you the ...


1

The supported mechanism would be to edit the version pinning the top of your state tree, but that will cause attribute conflicts with every row in every version unless you also apply that edit to every version. Then you could reconcile this 51st version and post the change. For this particular case, it would be faster (and risky, and unsupported) to make ...


1

There is a good post on this site with working code on how to do this. Shout out to Emil. The errors you may be dealing with involve whether or not the data is versioned and if you have edit permissions per This Post: If the tables are versioned with the option to move the edits to the base, THEN you do not use startOperation() and stopOperation(). ...


1

Looks like you are not referencing the full path to your newly created SDE connection. Try this: edit = arcpy.da.Editor(os.path.join(outFolderPath, outName))



Only top voted, non community-wiki answers of a minimum length are eligible