Hi, I am new to arcpy and trying to automate one of my daily task.
i want to use Searchcursor Inside UpdateCursor for multiple fc look through. I want to update MPK field form CP fc based on Mains and Service fc. please help.
Thank you in advance.
Solved! Go to Solution.
Don't nest Cursors. Build a dict with a da.SearchCursor, then refer to that dict in your da.UpdateCursor loop. Here are plenty of examples:
Turbo Charging Data Manipulation with Python Cursors and Dictionaries
Don't nest Cursors. Build a dict with a da.SearchCursor, then refer to that dict in your da.UpdateCursor loop. Here are plenty of examples:
Turbo Charging Data Manipulation with Python Cursors and Dictionaries
Thank you, I'll try that.