Forums

Home » Liferay Portal » English » 3. Development

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

sawi _

Rank: Regular Member

Posts: 148

Join Date: March 27, 2009

Recent Posts

Hi
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 '10154-email@asd.pl' for key 'IX_615E9F7A'

anybody know what is wrong?

Regards
sawi