Select to view content in your preferred language

Copy_management is throwing an exception but still copies database

604
0
02-07-2013 10:56 AM
FrankLahm_III
Deactivated User
I have a 9.3 file geodatabase that we use as a template.  I am trying to upgrade the database to 10.1 version, but I am having problems with Copy_management when I run my script that sets up the workspace.  Copy_management is throwing an exception when it attempts to copy the 10.1 version of the database:
ExecuteError: ERROR 000260 - Failed to copy [my data] Failed to execute (Copy).

I have tested just the Copy_management tool and I receive the same exception, however, when you refresh the folder the database was copied.  I have had the same results when I create a blank file geodatabase and try and copy it with the Copy_management tool, so it doesn�??t appear to be an issue with our database template.
Any ideas what I am doing wrong or is this a bug? I have never had this problem with Copy_managment prior to updating the geodatabase.
Below are the pertinent portions of the code that are failing.

Thanks,
-f
#the location where the data is going
Carto_WS = arcpy.GetParameterAsText(0)
#the letter/numbers used to identify the work and name database
LOCAL_ID = arcpy.GetParameterAsText(1)
#this is the database that is copied
BlankESMTROW = arcpy.GetParameterAsText(2)
BlankESMTROW_WS = os.path.dirname(BlankESMTROW)
LOCAL_IDReplace = LOCAL_ID.replace ('-','_')
fGDBName = LOCAL_IDReplace +".gdb"
newFolder = Carto_WS + "\\" + LOCAL_IDReplace
fGDBPath = newFolder +"\\"+fGDBName
arcpy.Copy_management(BlankESMTROW,fGDBPath)
0 Kudos
0 Replies