Content
Updated by Christophe Bliard 2 days ago
###
### Steps to reproduce
1. Create 3 work packages: one parent with 2 children following each other
2. Select them all in work package list view (there are no checkboxes, you have to select them one by one with the mouse by keeping Ctrl or Command key pressed)
3. Right click and select "Bulk delete",
4. In the confirmation dialog, check "I acknowledge that ALL descendants of the listed work packages will be recursively removed." and click "Delete" button.
_??_
### What is the buggy behavior?
* 500 error.
* Appsignal:
* [https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/586](https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/586)
* [https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/582](https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/582)
* [https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/596](https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/596)
* [https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/939](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/939)
* [https://appsignal.com/openproject-gmbh/sites/63ce63dc83eb6762736f5052/exceptions/incidents/1361](https://appsignal.com/openproject-gmbh/sites/63ce63dc83eb6762736f5052/exceptions/incidents/1361)
* [https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/503](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/503)
* Message: `Attempted to update a stale object: WorkPackage.`
* Backtrace:
* app/services/work\_packages/delete\_service.rb:98 in block in WorkPackages::DeleteService#reschedule\_related
* app/services/base\_services/write.rb:36 in BaseServices::Write#persist
### What is the expected behavior?
* Work packages should be deleted without any errors
_??_ 
### Notes
This error on bulk delete has also been reported in this ticket ##60580 by Markus. This has been added to the existing issue with bulk edit because the symptoms are the same.
###
1. Create 3 work packages: one parent with 2 children following each other
2. Select them all in work package list view (there are no checkboxes, you have to select them one by one with the mouse by keeping Ctrl or Command key pressed)
3. Right click and select "Bulk delete",
4. In the confirmation dialog, check "I acknowledge that ALL descendants of the listed work packages will be recursively removed." and click "Delete" button.
* 500 error.
* Appsignal:
* [https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/586](https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/586)
* [https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/582](https://appsignal.com/openproject-gmbh/sites/681379ae55b0b20ed3735994/exceptions/incidents/582)
* [https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/596](https://appsignal.com/openproject-gmbh/sites/6813715a55b0b20ed373597c/exceptions/incidents/596)
* [https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/939](https://appsignal.com/openproject-gmbh/sites/674718f1d2a5e4a7cb8b2298/exceptions/incidents/939)
* [https://appsignal.com/openproject-gmbh/sites/63ce63dc83eb6762736f5052/exceptions/incidents/1361](https://appsignal.com/openproject-gmbh/sites/63ce63dc83eb6762736f5052/exceptions/incidents/1361)
* [https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/503](https://appsignal.com/openproject-gmbh/sites/673c529383eb67b55471dda2/exceptions/incidents/503)
* Message: `Attempted to update a stale object: WorkPackage.`
* Backtrace:
* app/services/work\_packages/delete\_service.rb:98 in block in WorkPackages::DeleteService#reschedule\_related
* app/services/base\_services/write.rb:36 in BaseServices::Write#persist
### What is the expected behavior?
* Work packages should be deleted without any errors
This error on bulk delete has also been reported in this ticket ##60580 by Markus. This has been added to the existing issue with bulk edit because the symptoms are the same.