Legacy Knowledge Base
Published Sep. 10, 2025

Upgrade fails for bundle(s) due to "Table 'X' already exists" error

Written By

Katlyn Lee

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When running the DB Upgrade Tool, I'm seeing that my upgrade process fails due to an error that looks something like the following:

    Bundle X has invalid content in tables.sql:_create table X 
    ...
    caused by ... Table 'X' already exists

Environment

  • Upgrade to Liferay DXP

Resolution

  • This error may occur in a specific situation where an admin restores a database backup to a schema that has previous been upgraded and runs the DB Upgrade Tool on the schema again. If the schema is not completely dropped, tables that were added by the initial upgrade process could still exist and cause the reported error.
  • To address this error, completely drop the schema and create a new schema prior to restoring the database backup for the upgrade process. 
Did this article resolve your issue ?

Legacy Knowledge Base