AnsweredAssumed Answered

arcpy search/update cursor not working

Question asked by ccnrm on Apr 28, 2015
Latest reply on Apr 28, 2015 by sephefox

Im running my script in ArcGIS 10.2 and the dialog window says completed, but the empty fields in the 'SoilsType' row of the 'mSoils' Feature Class aren't getting populated with the values from the 'SoilsType' field from the 'mLanduse' Feature Class.


cur = arcpy.da.SearchCursor(mLanduse, lField)
for row in cur:
 cur2 = arcpy.da.UpdateCursor(mSoils, sField)
 for row2 in cur2:
   if row2[0] == '' or row2[0] is None:
  row2[0] = lField