Forums

Home » Liferay Portal » English » 3. Development

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Ashok Sangi
no user exist with primary key 32568
May 3, 2012 7:40 AM
Answer

Ashok Sangi

Rank: New Member

Posts: 10

Join Date: November 21, 2011

Recent Posts

hi all,

iam trying to add the new user while adding iam getting NoUserExist exception
thi is my code:
UserLocalServiceUtil.addUser(userid, company.getCompanyId(), autoPassword, password,
password, autoScreenName, screenName, emailaddress, facebookId, openId,
themeDisplay.getLocale(), firstname, "", firstname, prefixId, suffixId, male,
birthdayMonth, birthdayDay, birthdayYear, "", groupIds, organizationIds, roleIds,
userGroupIds, sendEmail, serviceContext);

please anybody help me
Hitoshi Ozawa
RE: no user exist with primary key 32568
May 3, 2012 8:13 AM
Answer

Hitoshi Ozawa

Rank: Liferay Legend

Posts: 8000

Join Date: March 23, 2010

Recent Posts

Kind of difficult to know the reason for the error when the code you've shown is just like a copy of the Liferay API document.
It's maybe the values you've assigned to these parameters.
Hiral Ramavat
RE: no user exist with primary key 32568
May 4, 2012 1:20 PM
Answer

Hiral Ramavat

Rank: Junior Member

Posts: 97

Join Date: February 13, 2012

Recent Posts

Hi,

Which version of the liferay you are using?

It seems like the parameter you are passing are not in order as we have in the source code, So please check that.

Thanks,
Hiral