shrug-l: RefreshCatalog method
Sandell, Keith M.
sandell.keith at mail.dc.state.fl.us
Tue Aug 18 09:28:19 EDT 2009
Has anybody had any problem with the RefreshCatalog method not working
I have a script that creates a user defined table populated with user
define values. I have to verify the output by previewing the output in
Catalog, but for the OverWriteOutput method to work (on the next run)
the containing folder "must" be Refreshed, per ESRI as expected
behavior. So I either manually refresh or I should be able to use the
I included the RefreshCatalog method as the first process in the script
and it runs beyond this point, but the script fails prior to
creating/overwriting with a new table saying the "table already exists."
Any thoughts? The important part of the scrip is below:
# Import system modules
import sys, string, os, arcgisscripting
# Create the Geoprocessor object
gp = arcgisscripting.create()
gp.OverWriteOutput = True
# Load required toolboxes...
# Local variables...
scratchWS = gp.scratchWorkspace
xyTableName = "NewUserTable.dbf"
xyTable = scratchWS + "/" + xyTableName
# PreFresh Catalog
# Process: Create Table...
gp.CreateTable_management(scratchWS, xyTableName, "", "")
Keith Sandell, MBA
Correctional Services Assistant Consultant
Bureau of Probation and Parole Field Services
Office of Community Corrections
Florida Department of Corrections
2601 Blairstone Road
Tallahassee, Florida 32399
Phone: (850) 410-3045
Fax: (850) 487-4427
This electronic message may contain protected health record/care
information intended for addressee(s) only. Unauthorized release or
disclosure may violate state and/or federal laws.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the SHRUG-L