# Workspace Error type- 000301 for reconcile version

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")


This caused the version names to be formatted differently rather than the norm "sde.version_name". In this case part of the version name is formatted as follows "domain\username".version_name so since this is a string parameter you must enter it as: '"domain\username".version_name'
I encountered this error when attempting to use arcpy to run the arcpy.ReconcileVersions_management geoprocessing tool. The Esri sample script states "SDE.Default" for the Target Version parameter, but in order for the script to work I needed to capitalize the parameter as "SDE.DEFAULT". The was the only change I needed to make in order for the process to complete successfully.