I have a arcpy script to reconcile and post edits from 1 child to 1 parent 9the parent is not the default version). my code:
import arcpy
print "Preparing to begin Water Version Reconile and POST..."
workspace = r"C:\Users\path\to\my\GDB.sde"
arcpy.env.workspace = workspace
childVer = "sde.child_version"
parentVer = "sde.parent_version"
print 'Creating list of Database versions to work on...'
arcpy.ReconcileVersions_management(workspace, "BLOCKING_VERSIONS", parentVer, childVer, "LOCK_ACQUIRED", "NO_ABORT", "BY_OBJECT", "FAVOR_EDIT_VERSION", "POST", "KEEP_VERSION", "c:/temp/reconcilelog.txt")
And the error I receive:
File "C:\Program Files (x86)\ArcGIS\Desktop10.4\ArcPy\arcpy\management.py", line 16614, in ReconcileVersions raise e ExecuteError: ERROR 000301: The workspace is of the wrong type Failed to execute (ReconcileVersions).