BTW, the doc does make it seem like I need to be in an edit session.
import arcpy arcpy.env.workspace = r"Database Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde" ...
import arcpy arcpy.env.workspace = r"Database Connections\zzzyyyxxx_tcronin@sdemapper@ACR-GIS2@TestServer.sde" workspace = arcpy.env.workspace versionList = arcpy.ListVersions () versionList.remove('dbo.DEFAULT') versionList.remove('ACR_FINAL.Master') for version in versionList: arcpy.ReconcileVersion_management (workspace, version, 'ACR_FINAL.Master', "BY_OBJECT", "FAVOR_TARGET_VERSION", "NO_LOCK_AQUIRED", "NO_ABORT", "NO_POST") #this is assuming that 'ACR_FINAL.Master is the parent version to all other versions in the list.
Přihlášení členové mohou přispívat, sledovat aktualizace a další. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.