legacy-knowledge-base
公開されました Sep. 10, 2025

Liferayのアップグレード時に見られるUnique Constraint Violatedエラー

written-by

Dia Seung

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

learn-legacy-article-disclaimer-text

問題

  • 以下のように、Liferayのメジャーバージョン(7.2から7.4など)をアップグレードすると、Unique Constraint Violatedエラーが発生します:
ERROR [main][UpgradeStepRegistratorTracker:199] Failed upgrade process for module com.liferay.portal.configuration.persistence.impl
com.liferay.portal.kernel.log.LogSanitizerException: com.liferay.portal.kernel.upgrade.UpgradeException: java.sql.BatchUpdateException: ORA-00001: unique constraint (LIFERAY.SYS_C0070892) violated_ [Sanitized]

Environment

  • DXP 7.4, DXP 7.3, DXP 7.2

解決策

  • このエラーは、データベースのアップグレードスクリプトを実行する前に、前回インストールしたLiferayの osgi/configs ファイルを新規インストールに適用した場合に表示されます。
  • 解決するには、データベースのアップグレードスクリプトを実行する前に、 osgi/configs フォルダをクリアするか、重複するファイルを削除し、アップグレード完了後に設定ファイルを適用します。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base