Page cannot be moved between spaces due to existing duplicate in trash

Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.

Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. 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

Symptoms

When you try to move a page to another space it renders an error in logs but nothing appears in the UI and the process doesn't finish as expected.

The following appears in the atlassian-confluence.log:

1 2 3 4 [atlassian.event.internal.AsynchronousAbleEventDispatcher] run There was an exception thrown trying to dispatch event [com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent[source=page: XXXXX (ID)]] from the invoker [SingleParameterMethodListenerInvoker{method=public void com.atlassian.confluence.links.RelatedContentRefactoringListener.handleEvent(com.atlassian.confluence.event.events.content.page.PageMoveCompletedEvent),listener=com.a tlassian.confluence.links.RelatedContentRefactoringListener@2eefd899}] – url: /pages/movepage.action | userName: username | referer: PAGE_URL | action: movepage java.lang.RuntimeException: A page already exists with the title PAGE_TITLE in the space with key SPACEKEY

Cause

This error is caused due to a bug in the application tracked here: CONFSERVER-34649 - Page move fails because of a deleted page.

It happens when you move a page to another space that contains a page in trash with the same page name.

Resolution

Option 1:

  1. Change title of the page that will be moved before moving it.

    (Auto-migrated image: description temporarily unavailable)

    i.e. "Release Notes" to "Release Notes v1.0"

  2. Move page to desired location

    (Auto-migrated image: description temporarily unavailable)

    The new title can be changed back to the original after completion.

Option 2:

  1. Check the error in the logs to find the space which contains the deleted page (this may not be the same space as the page you are moving).

  2. Purge the trash in that space (documentation).

    (Auto-migrated image: description temporarily unavailable)

    When the trash is purged, all attachments on purged pages are permanently removed as well.

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.