Legacy Knowledge Base
公開されました Jul. 2, 2025

移行されたシステムでポートレットを公開する際の重複タグの例外

Written By

Rita Schaff

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.

課題

  • 6.2からDXP CloudまたはLiferay DXP 7.0にアップグレードし、ステージングを有効にしてタグ付きのWebコンテンツ記事を作成した後、記事をLiveに公開しようとすると以下のエラーが発生します。
    An unexpected error occurred with the publication process. Please check your portal and publishing configuration.

    The Tag tagname could not be imported because of the following error: A tag with the name tagname (duplicate) already exists.

環境

  • DXP 7.0

解像度

  1. portlet-ext.properties ファイルを
    [Liferay_Home]/tomcat-9.0.17/webapps/ROOT/WEB-INF/classesに作成します。
  2. 次の行を追加します。
    staging.merge.tags.by.name=true
  • このプロパティは false にデフォルトで設定されていますが、これはタグのマージが問題になる可能性がある例が いくつかあるためです。
    例。
    • アセットに属するタグで、すでに一度インポートされているものがあります。
      インポートされたタグがターゲット サイトで名前が変更され、同様のタグが再度作成された可能性があります。 その後、.larファイルを再インポートするかどうかを決めます。 このプロパティが
      falseに設定されている場合、.lar ファイルを再インポートしても (アセットに属する) タグは変更されず、古い (名前が変更された) ものが残ります。
    • タグはその UUID を使用して識別されるので、プロパティはそれらを無視し、インポート中にタグを識別するために名前を使用します。
      Liferay のほとんどのエンティティは UUID に基づいて識別されるため、代わりに名前を使用するオプションを持つことはデフォルトとは見なされません。
Did this article resolve your issue ?

Legacy Knowledge Base