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

LDAP から Liferay にデータをインポートする際の LDAPUserImporterImpl に関するエラー

written-by

Neil Cuzon

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

問題

  • LDAPからLiferayにユーザーデータをインポートしようとしたところ、次のようなエラーが発生しました:

  •  ERROR [liferay/scheduled_user_ldap_import-1][LDAPUserImporterImpl:817] Unable to import user CN=firstName lastName,OU=STU,OU=UserAccounts,OU=Tier2,OU=COMPANY: null:null:{samaccountname=sAMAccountName: firstName.lastName}

    org.springframework.dao.DataIntegrityViolationException: could not update: [com.liferay.portal.model.impl.UserImpl#8695514]; SQL [update User_ set mvccVersion=?, modifiedDate=?, jobTitle=? where userId=? and mvccVersion=?]; nested exception is org.hibernate.exception.DataException: could not update: [com.liferay.portal.model.impl.UserImpl#8695514]

環境

  • DXP 7.0

解像度

  • 上記のエラーは'jobTitle'値の文字数が100文字を超えたために発生します。 JobTitleカラムの最大文字数はデフォルトで100文字に設定されています。 この問題は、ジョブ・タイトルに含まれる文字を100文字に減らすことで解決します。
  • もう一つの選択肢は、 カスタムフィールドを作成して使用することである。
  • 第三に、 、この種の問題を解決するためにSQLカラムの上限を増やすことは、アップグレードの問題を引き起こす可能性があるため、お勧めできないことを強調したいと思います。
did-this-article-resolve-your-issue

legacy-knowledge-base