Hi,
I have been trying to select a number of features, delete some of them and update the rest. Like
Please edit the question to place the code in a code block (click on "..." then "</>" in the second row of icons).
Reading Python code without indention is nearly impossible.
It's also nearly impossible to debug incomplete code (especially when there are TWO SearchCursor flavors [and arcpy.SearchCursor is deprecated, and should not be used in code written since 2013]).
But you should know that nesting cursors is an antipattern, and the likely cause of your error.
- V
To supplement Vince's suggestion, for the visual
Code formatting ... the Community Version - Esri Community
Hey @Rohanrajan
This is a longshot, but it appears you're not performing an edit.startOperation() before starting the edit session.
Cody