HI,
I created a model using a sample script which runs fine in ArcMap to create a backup of a feature class in another geodatabase but when I export it to python script and run it I get the error:
Failed to execute. parameters are not vaild. Input feature class does not exist or is not supported.
My code is:
# BackupSeizures.py
# Created on: Fri Jun 25 2010 04:22:08 PM
# (generated by ArcGIS/ModelBuilder)
# ---------------------------------------------------------------------------
# Import system modules
import sys, string, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()
# Load required toolboxes...
gp.AddToolbox("C:/ESRIIreland/Add_ons/ExportFeatureClasswithDate/Toolbox.tbx")
# Local variables...
Seizures_DBO_Seizures = "Seizures.DBO.Seizures"
Backups__VERSION_DBO_DEFAULT_ = "Database Servers\\LASRV-GIS_SQLEXPRESS.gds\\Backups (VERSION:DBO.DEFAULT)"
# Process: Feature Class To Feature Class With Date...
gp.toolbox = "C:/ESRIIreland/Add_ons/ExportFeatureClasswithDate/Toolbox.tbx";
gp.FeatureClassToFeatureClassWithDate(Seizures_DBO_Seizures, Backups__VERSION_DBO_DEFAULT_, "Seizures")
I can't see where I'm going wrong, I'm new to this so any help much appreciated.
I'm using ArcEditor Version 9.3.1.
Rachel