AnsweredAssumed Answered

Stop script from overwriting itself

Question asked by ccnrm on Apr 30, 2015
Latest reply on May 2, 2015 by lpinner

I am running my script in ArcGIS 10.2 for Desktop and it doesn't stop processing. The script is overwriting itself but I'm not sure how to stop it as its not the intended purpose? Help, my loop is looping crazy?;

 

 with arcpy.da.SearchCursor(mLanduse_SpatialJoin, lField) as cursor:
     for row in cursor:
         with arcpy.da.UpdateCursor(mSoils, sField) as cursor2:
             for row2 in cursor2:
                 if row2[0] == ' ':  
                    row2[0] = row[0]
                    cursor2.updateRow(row2)

Outcomes