AnsweredAssumed Answered

Python arcpy.da.SearchCursor error 'tuple' object has no attribute 'getValue'

Question asked by jsn on Mar 4, 2016
Latest reply on Apr 7, 2016 by bixb0012

Hello everyone,


I am changing in my program the arcpy.SearchCursor  to arcpy.da.SearchCursor and when I run the code I am getting the following error message:

Python Error occurred

'tuple' object has no attribute 'getValue'



  # Get field objects from source FC AGREEMENT
  dsc = arcpy.Describe(AGREEMENT)
  fields = dsc.fields
  # List all field names except the OID field
  fieldnamesYesterday = [ for field in fields if != dsc.OIDFieldName]

  curYesterday = arcpy.da.SearchCursor(AGREEMENT, fieldnamesYesterday)

  for  rowYesterday in curYesterday:

        agreementID = rowYesterday.getValue("AGMID")
        datetimeVal = rowYesterday.getValue("DIGIDATE")
        print agreementID
        print datetimeVal