Python Error import arceditor

Discussion created by evtinker on Apr 7, 2011
Latest reply on Aug 2, 2011 by evtinker
I am trying to create a batch file to update a local file geodatabase one-way replica from an SDE server.  I created a very simple model to uncompress the file geodatabase and then sychronize changes from the SDE database to the file geodatabase.  The model seemed to run fine.  I then exported the model to python, and added it to the batch file.  When I attempt to run it, it errors out and logs the following:

Traceback (most recent call last):
  File "C:\GeoProcessing\UpdateArcReaderData\Scripts\Step04UpdateswBillingReplica.py", line 9, in <module>
    import arceditor
  File "C:\Program Files\ArcGIS\Desktop10.0\arcpy\arceditor.py", line 18, in <module>
RuntimeError: ERROR 999999: Error executing function.


The Python script generated by the model builder export looks like this:

# ---------------------------------------------------------------------------
# Step04UpdateswBillingReplica.py
# Created on: 2011-04-07 10:57:06.00000
#   (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------

# Set the necessary product code
import arceditor

# Import arcpy module
import arcpy

# Local variables:
swRegStorm_as_MChancey___sdeprod1_sde = "Database Connections\\swRegStorm as MChancey @ sdeprod1.sde"
KCMO_swBilling_gdb = "C:\\ArcReaderData\\KCMO_SDE\\KCMO_swBilling.gdb"
Uncompressed_data = "C:\\ArcReaderData\\KCMO_SDE\\KCMO_swBilling.gdb"

# Process: Uncompress File Geodatabase Data
arcpy.UncompressFileGeodatabaseData_management(KCMO_swBilling_gdb, "")

# Process: Synchronize Changes
arcpy.SynchronizeChanges_management(swRegStorm_as_MChancey___sdeprod1_sde, "MCHANCEY.ToAR_swBilling", Uncompressed_data, "FROM_GEODATABASE1_TO_2", "IN_FAVOR_OF_GDB1", "BY_OBJECT", "DO_NOT_RECONCILE")


Can anyone tell me why this isn't working?  I haven't modified the Python code at all, it is just as created by ArcGIS.

This is running on a PC with Windows 7 as the OS and with ArcGIS 10 with the current service pack.