Legacy Knowledge Base
Published Sep. 10, 2025

Table already exists upgrade error

Written By

Madeleine Clay

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

  • An upgrade is failing with a java.sql.SQLSyntaxErrorException: Table [table name] already exists error

Environment

  • Quarterly Releases
  • DXP 7.4
  • DXP 7.3
  • DXP 7.2

Resolution

NOTE: Be sure to take a backup of your database prior to making any changes. Always test the changes in a lower environment before making changes in production.

Making manual changes to the database is not recommended, and should be carefully assessed based on your own business needs and risk factors. Any such operation is performed at the sole discretion of your own team.

  • Check the schemaVersion column of the Release_ table for an entry with a value of 0.0.0.
  • In the pre-upgrade database, update the number to match the correct schemaVersion for that module your patch level (you can check the correct schemaVersion by selecting your patch level Downloads and opening the module version changelog).

Additional Information

  • Modules with the release number 0.0.0 trigger table creation. If a module has this number when an upgrade is run, Liferay will attempt to create tables and be unable to because the tables already exist.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base