Select to view content in your preferred language

Will the following code delete all versions in the database?

246
2
Jump to solution
08-20-2024 11:47 AM
GeorgeJonesRIGOV
Emerging Contributor

hi all, I'm considering running this line of code I have here. I am trying to reconcile and post my edits in a feature class into a main database. My goal is to not delete all the versions I have in store for it. Below is the following code for it. 

 

arcpy.ReconcileVersions_management (arcpy.env.workspace, "ALL_VERSIONS", defaultVersion, versionList, "LOCK_ACQUIRED", "NO_ABORT", "BY_OBJECT", "FAVOR_EDIT_VERSION", "POST", "KEEP_VERSION", reconcileLog)

 

thank you for any feedback.

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
EdMorris
Esri Contributor

Hello

If you look at the documentation for the Reconcile Versions tool:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/reconcile-versions.htm

and in particular the with_delete argument then if this is set to "KEEP_VERSION" then that will NOT DELETE the current edit version that was reconciled (according to the help documnention).

Before you run it in anger can you create a dummy version and make some edits to see what happens when you run the tool? Just to make sure the version is not deleted before you do it for real....

Make sure you satisfy the requirements to use the tool by reading the comments in the Usage section of the documentation too.

many thanks ed

 

View solution in original post

2 Replies
EdMorris
Esri Contributor

Hello

If you look at the documentation for the Reconcile Versions tool:

https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/reconcile-versions.htm

and in particular the with_delete argument then if this is set to "KEEP_VERSION" then that will NOT DELETE the current edit version that was reconciled (according to the help documnention).

Before you run it in anger can you create a dummy version and make some edits to see what happens when you run the tool? Just to make sure the version is not deleted before you do it for real....

Make sure you satisfy the requirements to use the tool by reading the comments in the Usage section of the documentation too.

many thanks ed

 

GeorgeJonesRIGOV
Emerging Contributor

ok thanks! but if i reconcile and post it would it affect the other versions also? thanks!

0 Kudos