Cannot insert duplicate key in object 'dbo.Spaces' encountered when importing a space from Confluence Cloud site

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Except Fisheye and Crucible

Summary

When importing a space which was exported from a Confluence Cloud site, you encounter a "Unique key constraint 'UK_jp1ad5yufsih5r7lqrygakpug'. Cannot insert duplicate key in object 'dbo.Spaces'. The duplicate key value is ()" error message.

Cause

CONFCLOUD-64563 - Getting issue details... STATUS

Solution

  1. Open a Cloud support ticket and engage them to address  CONFCLOUD-64563 - Getting issue details... STATUS  for this site
  2. Re-export the Cloud space
  3. Delete any previously partially-failed imported spaces in the target environment
  4. Re-import the Cloud space


Last modified on Jan 20, 2021

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.