AnsweredAssumed Answered

Using Append_management for all versions

Question asked by ndilekli on Mar 8, 2018
Latest reply on Jul 24, 2018 by ndilekli

I have a rather complicated enterprise geodatabase version scheme that looks like this:

 

Multiple projects with subprojects

Periodically I get updates to our data inventory, and I would like to update all the versions together. I tried the append_management command as follows:

# some code

for fds in arcpy.ListDatasets('','feature') + ['']:

    for fc in arcpy.ListFeatureClasses('','',fds):

        inputPath = os.path.join(arcpy.env.workspace, fds, fc)
        outputPath = os.path.join(outLocation, sdeString + fc)
        arcpy.Append_management(inputPath, outputPath, schemaType, fieldMappings, subtype)

 

 

However, this only updated the DEFAULT SDE version. What's the best strategy to push those changes to the child versions as well? I would like to be able to do this programatically.

 

Thanks, Naci

Outcomes