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

アセット カテゴリを移動すると bigint が範囲外エラーになる

Written By

Zalán Szakolci

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.

問題

  • 数万のカテゴリがあり、構造を頻繁に変更し、カテゴリ ツリー内でカテゴリを移動します。
  • カテゴリを移動しようとすると、bigint が範囲外のエラーが発生します。

Environment

  • Liferay DXP 7.1
  • Liferay DXP 7.2

解決策

  • 次の手順を実行して、カテゴリ ツリーを再構築する必要があります:
    1。 コントロール パネル -> サーバー管理 -> スクリプト
    2 に移動します。 言語
    3 のドロップダウンで「Groovy」を選択します。 このコードを貼り付けて、[Executeをクリックします。
    import com.liferay.portlet.asset.service.AssetCategoryLocalServiceUtil
    AssetCategoryLocalServiceUtil.rebuildTree(<gid>,true)
    AssetCategoryLocalServiceUtil クラスでは、rebuildTree は、変更を強制するために groupId とブール値を必要とします。 <gid> 影響を受けるサイトの groupId であり、再構築を強制するには "true" が必要です。
    したがって、サイトのカテゴリを修正する場合は、データベースまたは UI (siteId) からその groupId を見つけて、スクリプトを適切に変更できます。
    4. Liferayを再起動するか、サーバー管理に戻ります-&gt;リソースを入力し、[データベースキャッシュをクリアする]をクリックします。

Did this article resolve your issue ?

Legacy Knowledge Base