You want to delete a territory but this is not possible and you get an error similar to: 'Cannot delete territory; accounts remain assigned to it'.
SAP Hybris Cloud for Customer
Reproducing the Issue
Go to the Sales workcenter.
- Go to the Territories view.
- Select the relevant territory ABC (ABC represents the territory name).
- Click the Delete button.
- The territory will not be deleted. You might receive an error message like 'Cannot delete territory; accounts remain assigned to it' or similar.
Your territory ABC is assigned to data in the system. The error message above would mean that there are accounts assigned to the territory. You might get a similar error if other documents have the territory assigned (for example Sales Orders).
Delete the territory from the documents - both Master data as well as transactional data.
Cannot delete territory; accounts remain assigned to it; Gebiet lässt sich nicht löschen; Gebiet kann nicht gelöscht werden; es wird in Vorfallbelegen verwendet; Territory, delete, löschen, Gebiet, cannot , KBA , LOD-CRM-TM , Territory Management , How To