Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
Dariusz Sawicki
BatchUpdateException after add user LF 6.1
October 3, 2012 6:33 AM

Dariusz Sawicki

Rank: Regular Member

Posts: 165

Join Date: March 27, 2009

Recent Posts

I have problem with add User :

UserLocalServiceUtil.addUser(UserLocalServiceUtil.getDefaultUserId(themeDisplay.getCompanyId()), userToCreate.getCompanyId(), autoPassword,
password1, password2, autoScreenName, null, userToCreate.getEmailAddress(),
facebookId, openId, Locale.getDefault(), userToCreate.getFirstName(),
userToCreate.getMiddleName(), userToCreate.getLastName(), prefixId, suffixId,
userToCreate.getMale(), userToCreate.getBirthday().getMonth(),
userToCreate.getBirthday().getDay(), userToCreate.getBirthday().getYear(),
userToCreate.getJobTitle(), groupIds, organizationIds, roleIds, userGroupIds,
sendEmail, serviceContext);

after add user from portlet when I go to control-panel->portal settings and click save I got error:

Caused by: java.sql.BatchUpdateException: Duplicate entry '' for key 'IX_615E9F7A'

anybody know what is wrong?


Participate in the State of Liferay Community 2017. Help the community and even win some prizes!