> Source: [sk114581](https://support.checkpoint.com/results/sk/sk114581)

# sk114581 - "Operation finished with errors" message when removing  Domain Management Server

| Property | Value |
|----------|-------|
| Solution ID | sk114581 |
| Date Created | 2016-11-25 |
| Last Modified | 2022-11-08 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- * Domain Management Server (CMA) removal from SmartConsole fails with "`Operation finished with errors`" message.  

* Domain Management Server (CMA) remains in the GUI but is not displayed in CLI.  

* Trying to delete the DMS/CMA using the `createDomainRecovery` script fails:  

  `$MDS_FWDIR/scripts/createDomainRecovery.sh -d <domain name> -ds <domain server name> -m <MDS name> -a`  
  `
  Operation finished with errors Check logs in: /opt/CPmds-R80/log/cpm.elg and /opt/CPsuite-R80/fw1/log/cpm.elg`  

* The `cpm.elg` file shows:   

  `ERROR internal.operation.OperationSvcImpl [qtp-ID]: caught exception "Trying to update a detached object through ObjectStoreSession: objId:ae929962-fbaa-4624-8a97-eac5b901325b class: com.checkpoint.objects.FolderMirror" from class com.checkpoint.management.is.exceptions.CpmGeneralException `  

  `

  ERROR coresvc.internal.DomainManagementSvcImpl [qtp-ID]: exception during deleting of domain 'Domain_Name' id [ba10230f-1e23-425a-9574-03effbdbeb66]`
* `CPM.elg log shows:

  found #xx objects to check before deleting domain [name '`' , id [d2687c31-4c3e-f441-afcf-7ad6f7b17735]] ............... Deleting domain: d2687c31-4c3e-f441-afcf-7ad6f7b17735 , Transaction is ended with no actual database access. see /opt/CPsuite-R80/fw1/log/inactive-tx.elg for details (the last line repeats a lot of times) ............... Caught ValidationException The Domain has no Domain Server, can't delete it. Please contact technical support incident list: message: The Domain has no Domain Server, can't delete it. Please contact technical support severity: BLOCKING_ERROR

## Cause

As part of the create domain recovery process, all objects that were created should be deleted. When the process starts deleting all relevant objects, it tries to delete the same object twice (because of some cyclic dependencies, for example), therefore the second time the process fails because the object is no longer in the database.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
