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 files of the source XML and the target XML (have exported the space for backup purposes).



#Thu May 05 08:27:41 EST 2016
spaceKey=<<Source Space Key>>
defaultUsersGroup=confluence-users, com.atlassian.mywork.mywork-confluence-host-plugin


#Tue May 17 13:41:58 AEST 2016

spaceKey=<<Target Space Key>>
defaultUsersGroup=confluence-users, com.atlassian.confluence.plugins.confluence-space-ia




1 answer


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.


Suggest an answer

Log in or Sign up to answer
Community showcase
Posted Oct 24, 2018 in Confluence

Atlassian Research opportunity with Confluence templates

Do you use templates with Confluence? Take part in a remote 1-hr workshop. You'll receive USD $100 for your time!   We're looking for people to participate in a   remote 1-hr workshop...

1,577 views 26 14
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