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

「アップグレード処理時に「XXXXXの主キーカラムが見つかりません。

written-by

Roberto Díaz

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

問題

  • アップグレード中に、アップグレードログにこのエラーが表示されることがあります:
    2021-09-30 14:25:57.235 INFO [main][UpgradeProcess:115] Failed upgrade process com.liferay.portal.upgrade.PortalUpgradeProcess in 8114 ms
    com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: com.liferay.portal.kernel.upgrade.UpgradeException: No primary key column found for AssetCategory
    at com.liferay.portal.kernel.upgrade.UpgradeProcess.upgrade(UpgradeProcess.java:109)

Environment

  • DXP 7.3

解決策

  • 問題の根源は、指定されたデータベース・テーブルにあります。
  • データベースの状態を確認し、期待通りに設定する必要があります。
  • データベースの移行(またはデータベースのバージョンアップ)が根本的な原因である場合もあります。
    • もしそうであれば、以前のデータベースの状態を確認し、主キーを設定することができます。
    • 矛盾が見つかった場合、データベースの移行を繰り返し、主キーが期待通りに設定されていることを確認することが推奨される修正方法です。
    • データベースはサードパーティテクノロジーであるため、その移行はLiferayサポートの範囲外であることを考慮してください( Third-Party Technology Defects, Optimizations and Configurationsを参照)。
did-this-article-resolve-your-issue

legacy-knowledge-base