Tag Info

Hot answers tagged

2

In Arcgis the dataset version is set at Workspace level. As you have mentioned in your question, you should create a connection file for that version and change the handle to the featureclass or table. something like this: worspace = "c:/connectionFiles/version1.sde/" layerName = "parcel" fc= worpspace+layerName arcpy.da.SearchCursor(fc,...) ##to change ...


1

As Richard's comment points out, the issue here isn't the special characters. Domains aren't enforced until time of validation (Validate Features on Editor toolbar), so even if a field has a domain on it you can enter whatever you want to the field. In this case, it appears that the description rather than the value code has been entered. This is evidenced ...


1

You are on the right track. You just need to use MakeFeatureLayer to convert the feature class to a layer. I created a version and did an edit and then tried the following: >>> arcpy.env.workspace = r'Database Connections\gisadmin.sde' >>> arcpy.MakeFeatureLayer_management(r'Database Connections\gisadmin.sde\GISADMIN.Buildings', 'fl') ...



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