Merge of 2 Confluence spaces - Key already exists

hi experts,

Apologies if this is a duplicate question - have tried searching the database for resolution and had to post a question.

 

We have a requirement to merge a source confluence space into a target space. The target space is not empty and has content already. We are trying to merge the source content into the target space.

When I try to import the space using the "cog icon --> General Configuration --> Administration --> Import Spaces", i get the following error:

 

A space with key <<Target Space Key>> already exists


I am new to Confluence administration and not sure if I am missing something, can you please help me.

 

Target space is an Atlassian on-demand instance.

 

I know that the space keys of source and target are different and below is the snapshot of the exportDescriptor.properties files of the source XML and the target XML (have exported the space for backup purposes).

 

Source exportDescriptor.properties

#Thu May 05 08:27:41 EST 2016
buildNumber=4517
ao.data.version.com.atlassian.mywork.mywork-confluence-host-plugin=2.4.5
ao.data.version.min.com.atlassian.confluence.plugins.confluence-space-ia=5.0
exportType=space
createdByBuildNumber=5781
spaceKey=<<Source Space Key>>
backupAttachments=true
defaultUsersGroup=confluence-users
ao.data.list=com.atlassian.confluence.plugins.confluence-space-ia, com.atlassian.mywork.mywork-confluence-host-plugin
ao.data.version.min.com.atlassian.mywork.mywork-confluence-host-plugin=1.1.30
ao.data.version.com.atlassian.confluence.plugins.confluence-space-ia=9.3


Target exportDescriptor.properties

#Tue May 17 13:41:58 AEST 2016

buildNumber=4517
ao.data.version.com.atlassian.mywork.mywork-confluence-host-plugin=4.0.1
ao.data.version.min.com.atlassian.confluence.plugins.confluence-space-ia=5.0
exportType=space
createdByBuildNumber=6442
spaceKey=<<Target Space Key>>
backupAttachments=true
defaultUsersGroup=confluence-users
ao.data.list=com.atlassian.mywork.mywork-confluence-host-plugin, com.atlassian.confluence.plugins.confluence-space-ia
ao.data.version.min.com.atlassian.mywork.mywork-confluence-host-plugin=1.1.30
ao.data.version.com.atlassian.confluence.plugins.confluence-space-ia=13.0.4

 

Thanks,

Krishna

1 answer

This widget could not be displayed.

Hi,

Maybe this works:

  1. Rename the source space (name and key).
  2. Export it.
  3. Import it to the ondemand instance.
  4. Move the pages from the source space to the target space manually.

Regards,
Stephan

Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Monday in Confluence

Why start from scratch? Introducing four new templates for Confluence Cloud

Hi my Community friends!  For those who don't know me, I'm a product marketer on the Confluence Cloud team - nice to meet you! For those of you who do, you know that I've been all up in your Co...

475 views 6 6
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you