I am trying to schedule a python script to synchronize changes. I created a model first with one command in it -- the create replica tool from ArcToolbox. I exported the model to a python script and made a few changes. One fix was to change "arceditor" to "arcinfo" because we don't have arceditor.
When I try to run the python script at the command prompt, I get the following error:
----------------------------------------------------------------------------------
Traceback (most recent call last):
File "C:\Temp\MyCreateReplicaScript.py", line 28, in module
arcpy.CreateReplica_management("'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.BroadBand';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.AddPt';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.CAI';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.MidMile';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.ratetiers';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.SCAN_PTS';'Database Connections\\SQL14 - BBCov - Loader.sde\\BBCov.L.VALIDATION'", "CHECK_OUT", BroadBandMapping2_gdb__2_, "TodaysCheckOut5", "FULL", "CHILD_DATA_SENDER", "USE_DEFAULTS", "DO_NOT_REUSE", "GET_RELATED", "", "DO_NOT_USE_ARCHIVING")
File "c:\program files (x86)\arcgis\engine10.0\ArcPy\arcpy\management.py", line 708, in CreateReplica
raise e
arcgisscripting.ExecuteError: ERROR 000582: Error occurred during execution.
Failed to execute (CreateReplica).[/CODE
----------------------------------------------------------------------------------
I looked up the error 00582 and it said to look at the values of the parameters because the tool first does a check on the input parameters.
But it doesn't tell me which parameter value to fix. But hold on, didn't I export the script directly from a model? You would think the code would work "as-is", but no.
Does anyone have any ideas on how to fix this or work around it?