Message : Could not find Parent Department : All Departments while trying to delete a company


I’m in versions :
ERPNext V12.1.1
Frappe Framework V12.1.1

and when I try to delete a company and all the associeted records I get the following message :
Could not find Parent Departement : All Departements

Do I do something wrong?


@PBI You can create Parent Department with name All Departments again,

It has been a long time but today I had the same experience and wanted share my solution for everyone having the same issue.

I realized that this issue happens when we use another language during the first setup but use English when trying to delete all the transactions.

Just change back to the original language and you can delete the transactions without any errors.