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

アップグレードエラー DDMフォーム ポールの置き換え

written-by

Kenny Back

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.0から7.4へのアップグレードを実行していますが、ログに次のようなエラーが記録されています:
WARN  [main][BasePortletIdUpgradeProcess:511] null
com.liferay.portal.kernel.log.LogSanitizerException: org.postgresql.util.PSQLException:
ERROR: duplicate key value violates unique constraint "ix_cb778855"_ Detail: Key
(ownerid, ownertype, plid, portletid, ctcollectionid)=
(0, 3, 0, com_liferay_dynamic_data_mapping_form_web_portlet_DDMFormAdminPortlet, 0)
already exists. [Sanitized]

Environment

  • DXP 7.0 > DXP 7.4

解決策

  • アップグレードが失敗しているのは、DDM FormsがPollsを置き換えた古いバージョンを変換しようとしているからです。
  • これを解決するために2つのクエリーを実行することができる。
Select * from PortletPreferences where portletid = 'com_liferay_polls_web_portlet_PollsPortlet'

com_liferay_polls_web_portlet_PollsPortlet が存在することが確認できたら、次のクエリを実行します:

Delete from PortletPreferences where portletid = 'com_liferay_polls_web_portlet_PollsPortlet'

追加情報

  • LPS-187221今後のアップデートでこの問題を修正するためのチケットがあります。

did-this-article-resolve-your-issue

legacy-knowledge-base