Update Site Migrate Failure

When Update the site to new version (ERP next 15), system shows the following in logs report. How to resolve the issues

File “/home/frappe/frappe-bench/apps/erpnext/erpnext/patches/v15_0/update_total_number_of_booked_depreciations.py”, line 21, in execute for je in depr_schedule:
assets = [{‘name’: ‘ACC-ASS-2024-00005’, ‘opening_number_of_booked_depreciations’: 22}, {‘name’: ‘ACC-ASS-2024-00004-2’, ‘opening_number_of_booked_depreciations’: 59}
depr_schedule = None
total_number_of_booked_depreciations = 15
je = <DepreciationSchedule: 0b40nd88si docstatus=1 parent=ACC-ADS-2024-00055> builtins.TypeError: ‘NoneType’ object is not iterable

Maybe you can try to delete the following:


and try the migration again, if successful you can recreate these records.

Can’t delete the records, its live entries.