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

# sk163655 - mds backup fails to restore with a "work_session" error

| Property | Value |
|----------|-------|
| Solution ID | sk163655 |
| Date Created | 2019-11-27 |
| Last Modified | 2023-06-27 |
| Technical Level | Advanced |
| Products | Multi-Domain Security Management Server |
| Versions | R82.10, R81.20, R82, R82.20 |
| OS | Gaia |

## Symptoms

- mds backup fails to restore/ migrate export with upgrade tool fails with this error on the console:  

`
ERROR: insert or update on table "ct_work_session_domain_ids" violates foreign key constraint "fk_ct_`**work_session** `_domain_ids_worksession_objid"`  
`
DETAIL: Key (worksession_objid)=(186e53f2-ed2d-4793-9569-01814d6fa161) is not present in table "worksession".`  
`
mds_restore > Failed to restore 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
