nathanielroth

AddIndex_management error:

Discussion created by nathanielroth on Mar 18, 2011
Latest reply on Feb 5, 2016 by jplattner
Can anyone tell me why the following python exported directly from a Geoprocessing Model that works does not work?
The error message:
arcgisscripting.ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000530: Value is required


I am replacing tst.dbf with a fresh copy before running it in python.

Thank you,
Nate



# Import arcpy module
import arcpy


# Local variables:
tst_dbf = "C:\\Users\\roth\\Desktop\\MIP_Training\\Outputs\\tst.dbf"
tst_View = "tst_View"

# Process: Make Table View
arcpy.MakeTableView_management(tst_dbf, tst_View, "", "", "OID OID VISIBLE NONE;BKGPIDFP00 BKGPIDFP00 VISIBLE NONE;FREQUENCY FREQUENCY VISIBLE NONE;SUM_area_z SUM_area_z VISIBLE NONE")

# Process: Add Attribute Index
arcpy.AddIndex_management(tst_View, "BKGPIDFP00", "#", "NON_UNIQUE", "NON_ASCENDING")

Outcomes