Python error with Spatial ETL Tool

406
0
08-16-2010 03:58 PM
JaneWickers
New Contributor III
I have a script for automating a Spatial ETL Tool that I have developed. This worked fine in 9.3.1, but when I run it in 10 I get an error. Any ideas?

Thanks.

Jane

# Import system modules
import sys, string, os, arcgisscripting

# Create the Geoprocessor object
gp = arcgisscripting.create()

# Load required toolboxes...
gp.AddToolbox("Z:/ESRI/Data/Replication/Replication.tbx")

gp.CheckOutExtension("DataInteroperability")

gp.overwriteoutput = 1

# Local variables:
Destination_Geodatabase_ = "Z:\\ESRI\\Data\\test_Basemap.gdb"
Destination_Geodatabase___2_ = "Z:\\ESRI\\Data\\Basemap.gdb"
Destination_Geodatabase___3_ = "Z:\\ESRI\\Data\\Community_Facilities_Services.gdb"
Destination_Geodatabase___4_ = "Z:\\ESRI\\Data\\Surveying.gdb"
Destination_Geodatabase___5_ = "Z:\\ESRI\\Data\\Water_Reticulation.gdb"
Destination_Geodatabase___6_ = "Z:\\ESRI\\Data\\Infrastructure.gdb"
Destination_Geodatabase___7_ = "Z:\\ESRI\\Data\\Stormwater.gdb"
Destination_Geodatabase___8_ = "Z:\\ESRI\\Data\\Sewer_Reticulation.gdb"
Destination_Geodatabase___9_ = "Z:\\ESRI\\Data\\LEP2000_Gazetted.gdb"
Destination_Geodatabase___10_ = "Z:\\ESRI\\Data\\DCP_Consolidated.gdb"
Destination_Geodatabase___11_ = "Z:\\ESRI\\Data\\Planning_Section94.gdb"
Destination_Geodatabase___12_ = "Z:\\ESRI\\Data\\Draft_LEP09_CEN.gdb"
Destination_Geodatabase___13_ = "Z:\\ESRI\\Data\\Draft_LEP08_Constraints.gdb"
Destination_Geodatabase___14_ = "Z:\\ESRI\\Data\\Draft_LEP08.gdb"

# Process: DAILY: Oracle to FGDB Replication
gp.toolbox = "Z:/ESRI/Data/Replication/Replication.tbx";
gp.DailyJW_Jane("gisp", Destination_Geodatabase_, Destination_Geodatabase___2_, Destination_Geodatabase___3_, Destination_Geodatabase___4_, Destination_Geodatabase___5_, Destination_Geodatabase___6_, Destination_Geodatabase___7_, Destination_Geodatabase___8_, Destination_Geodatabase___9_, Destination_Geodatabase___10_, Destination_Geodatabase___11_, Destination_Geodatabase___12_, Destination_Geodatabase___13_, Destination_Geodatabase___14_, "gisp")
print "Finished"

Traceback (most recent call last):
  File "Z:\ESRI\Data\Replication\arcgis10_testing\dailyetl.py", line 39, in <module>
    gp.DailyJW_Jane("gisp", Destination_Geodatabase_, Destination_Geodatabase___2_, Destination_Geodatabase___3_, Destination_Geodatabase___4_, Destination_Geodatabase___5_, Destination_Geodatabase___6_, Destination_Geodatabase___7_, Destination_Geodatabase___8_, Destination_Geodatabase___9_, Destination_Geodatabase___10_, Destination_Geodatabase___11_, Destination_Geodatabase___12_, Destination_Geodatabase___13_, Destination_Geodatabase___14_, "gisp")
AttributeError: Object: Tool or environment <s> not found
0 Kudos
0 Replies