legacy-knowledge-base
公開されました Jun. 30, 2025

フィールドセットでウェブコンテンツ構造をインポートすると失敗する

written-by

Anishq Sharma

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

問題

LAR に フィールドセット を構造上含む Web コンテンツが追加された場合、インポートに失敗します。

  • 再現するためのステップ:

    • コンテンツ & データ --> ウェブコンテンツ --> 構造体 に移動し、以下のような構造体を3つ作成します:

    • 最初の構造体を "fieldSetStructure "と名付け、いくつかのフィールドを追加する。

    • 2つ目の構造体を "structure1 "と名付け、"fieldSetStructure "というフィールドセットを追加する。

    • 3つ目の構造体を「構造体2」と名付け、「構造体1」フィールドセットを追加します。

    • Webコンテンツ "から構造体をエクスポートし、3つのドットメニューExport / Importをクリックし、LARをダウンロードします。

    • コントロールパネル --> サイト --> サイトに移動して新しいサイトを作成し、コンテンツ & データ --> Web コンテンツ経由で LAR をインポートしようとします。

  • 期待される結果
    エラーはなく、インポートは成功しました。

  • 実際の結果です:

    インポートは以下のUIエラーで失敗します:

    An unexpected error occurred with the publish process. Please check your portal and publishing configuration.
     The model.resource.com.liferay.data.engine.model.DEDataDefinitionFieldLink FieldsGroup08544649 could not be imported because of the following error: org.hibernate.exception.ConstraintViolationException: could not execute batch.

環境

  • Liferay DXP 7.4

解像度

did-this-article-resolve-your-issue

legacy-knowledge-base