Hi all, I'm trying to reconcile a checked out enterprise database to the default database version. Here is the code I have so far but does not work.
import arcpy
from arcpy import env
arcpy.env.overwriteOutput = True
arcpy.env.workspace =r'S:\PW\GIS\Map Requests\2023_07_YardWasteAprxProjectAndRefuseRoutes\xxxxxx03_PW_Edit.sde'
arcpy.ReconcileVersions_management (arcpy.env.workspace, "ALL_VERSIONS", "DBO.DEFAULT", "versionlist", "LOCK_ACQUIRED", "NO_ABORT", "BY_OBJECT", "FAVOR_EDIT_VERSION", "POST", "KEEP_VERSION", "reconcileLog")
fc = r'S:\PW\GIS\Map Requests\2023_07_YardWasteAprxProjectAndRefuseRoutes\xyzxyzx.sde\xyzxy.DBO.Routes\xyzxy.DBO.YardWasteRoutesBest2024'
arcpy.management.MakeFeatureLayer(fc, 'YardWasteStops','','')
arcpy.ChangeVersion_management('YardWasteStops','TRANSACTIONAL', 'DBO.xxEdit','')
arcpy.conversion.FeatureClassToFeatureClass('YardWasteStops',r'S:\xy\GIS\Map Requests\2023_07_YardWasteAprxProjectAndRefuseRoutes\YardwasteAprx.gdb','YardWasteStops')
print('done')
As a result, I keep getting a log file saying "Warning: The reconcile process was not performed. The specified target version (dbo.DEFAULT) has no edit versions to reconcile with". This should not be the case. The dbo.DEFAULT is the parent version and the PW_Edit is the child version of this. I am stumped as why is that the case.
Note i replaced the file path names with xyxyx for privacy.