AnsweredAssumed Answered

calculate field on sde versioned data

Question asked by fmoisan on Nov 2, 2017
Latest reply on Nov 2, 2017 by TMorgan-esristaff

Hi!

I need to do some update an attribute on a SDE feature class (versioned).

The feature class is within a FeatureDataset.

 

I want to do a simple calculate field on a specific version of my data (the user will chose the version).

 

But It fail every time.  I can do this on the DEFAULT version only.

I try something like this

edit = arcpy.da.Editor(workspace)
edit.startEditing(False, True)

 

#Creating a feature layer (no selection, all the data)

arcpy.MakeFeatureLayer_management(fc,_mon_feature_layer)

#Changing the version
arcpy.ChangeVersion_management(_mon_feature_layer, 'TRANSACTIONAL', _ma_version_cible)

 

 

Any Idea?

Outcomes