This is the structure of our SDE tree:�?� First SDE.Default�?� Second a child version from default called Pre-Production�?� Third an user version child of Pre-Production
My goal is to run a script that will perform the following operations: - move all the records that are completed in a feature class to an historical one, - and then remove features from the regular feature class that were archived.
I was able to write a Model Builder that creates a new child version from Pre-Production, selects records to be archived, appends them to the historical feature class, deletes these same records from the regular feature class and then running a reconcile with the option option �??Post Version after Reconcile�?� checked it works propagates all the updates for the child to the parent.But if I uncheck this option �??Post Version after Reconcile�?� in the Reconcile box and I run a POST TO Pre-Produciton I get an error message.
What does not work is adding a post box after the reconcile in ModelBuilder, it always fails, why?This is the error I got :Error 000533: the version can not be posted to the reconcile version. Reconcile must be performed before the post operation has been done.
# Process: Create Version... gp.CreateVersion_management(xyz_SDE_93_sde__2_, "SURADMIN.Pre_Prod", "Historical", "PUBLIC") # Process: Make Feature Layer... gp.MakeFeatureLayer_management(W_Source, Source_Layer, "STATUS = 'GIS Completed'", xyz_SDE_93_sde, ".....") # Process: Append... gp.Append_management("Source_Layer", W_Historical__2_, "TEST", "", "") # Process: Reconcile Version... gp.ReconcileVersion_management(xyz_SDE_93_sde, "LocalVersion.Historical", "SURADMIN.Pre_Prod", "BY_OBJECT", "FAVOR_TARGET_VERSION", "LOCK_AQUIRED", "NO_ABORT", "POST")
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.