I want to make a script in python to extract the data about version changes before make the reconcile/post process. Is that possible? I trying to avoid use C# or VB script.
[GIS] How to extract the data showed in Version Changes before reconcile/post process
arcpypythonreconcileversioning
Best Answer
Here's a python script to try. It's designed to be set up and run as an ArcGIS Toolbox script. Parameter type info is commented in the code. This will take an input dataset and target dataset (which correspond to the dataset form the input and target Versions that you are reconciling). You will need to make a database connection to each Version and use those connections when adding the datasets as parameters. The script will compare the current geometry and attribution for each Version and produce a csv output file which lists the OBJECTID, type of change, and for attribute changes the field and values. It will find adds, deletes, geometry updates and attribute updates. I've only tested this on a small dataset with "contrived" edits for testing, but hopefully it will work for you as well.