programmatically update MaxPS in Mosaic Dataset in python

719
1
05-08-2014 05:02 AM
todddoerr
New Contributor III
Does anybody know how to programatically update Mosaic Dataset attributes such as MaxPS using python?
I've tried code such as this:
#####################
cursor = arcpy.da.UpdateCursor(fullname, "MaxPS")
for row in cursor:
     print row.getValue("MaxPS")
#####################
but no luck.  It says field does not exist.

Thanks.
0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor
Hi Todd,

When using the new da module, you will need to pass an array for the field(s).  Try the following:

cursor = arcpy.da.UpdateCursor(fullname, ["MaxPS"])
for row in cursor:
    print row[0]

del row, cursor
0 Kudos